diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-04-29 12:15:49 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-04-29 12:15:49 +0000 |
commit | 5e7a22c9c3d09ad8bdefb127eb4a0faeee5fbb0b (patch) | |
tree | 721a0884bdb59f87db85171a056d51b1e246e467 /wcsmbs/wctob.c | |
parent | bf979eef1d8d6c6e9b5ad623d47ce9bab20b8be9 (diff) | |
download | glibc-5e7a22c9c3d09ad8bdefb127eb4a0faeee5fbb0b.zip glibc-5e7a22c9c3d09ad8bdefb127eb4a0faeee5fbb0b.tar.gz glibc-5e7a22c9c3d09ad8bdefb127eb4a0faeee5fbb0b.tar.bz2 |
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.
Diffstat (limited to 'wcsmbs/wctob.c')
-rw-r--r-- | wcsmbs/wctob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wcsmbs/wctob.c b/wcsmbs/wctob.c index b06d170..7376538 100644 --- a/wcsmbs/wctob.c +++ b/wcsmbs/wctob.c @@ -32,7 +32,7 @@ wctob (c) struct gconv_step_data data; wchar_t inbuf[1]; wchar_t *inptr = inbuf; - size_t converted; + size_t dummy; int status; /* Tell where we want the result. */ @@ -53,7 +53,7 @@ wctob (c) status = (*__wcsmbs_gconv_fcts.tomb->fct) (__wcsmbs_gconv_fcts.tomb, &data, (const char **) &inptr, (const char *) &inbuf[1], - &converted, 0); + &dummy, 0); /* The conversion failed or the output is too long. */ if ((status != GCONV_OK && status != GCONV_FULL_OUTPUT && status != GCONV_EMPTY_INPUT) |