1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
1998-04-29 12:11  Ulrich Drepper  <drepper@cygnus.com>

	* wcsmbs/mbsnrtowcs.c: Remove variable to pass to conversion function
	by letting the later modify the variable computing the total directly.
	* wcsmbs/mbsrtowcs.c: Likewise.
	* wcsmbs/wcsnrtombs.c: Likewise.
	* wcsmbs/wcsrtombs.c: Likewise.

	* wcsmbs/btowc.c (converted): Rename variable to dummy to make clear
	it is not used.
	* wcsmbs/wctoc.c: Likewise.
This commit is contained in:
Ulrich Drepper
1998-04-29 12:15:49 +00:00
parent bf979eef1d
commit 5e7a22c9c3
8 changed files with 39 additions and 44 deletions

View File

@ -32,7 +32,7 @@ __btowc (c)
struct gconv_step_data data;
char inbuf[1];
const char *inptr = inbuf;
size_t converted;
size_t dummy;
int status;
/* If the parameter does not fit into one byte or it is the EOF value
@ -55,9 +55,8 @@ __btowc (c)
/* Create the input string. */
inbuf[0] = c;
status = (*__wcsmbs_gconv_fcts.towc->fct) (__wcsmbs_gconv_fcts.towc,
&data, &inptr, inptr + 1,
&converted, 0);
status = (*__wcsmbs_gconv_fcts.towc->fct) (__wcsmbs_gconv_fcts.towc, &data,
&inptr, inptr + 1, &dummy, 0);
/* The conversion failed. */
if (status != GCONV_OK && status != GCONV_FULL_OUTPUT
&& status != GCONV_EMPTY_INPUT)