mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user