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/wcsnrtombs.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/wcsnrtombs.c')
-rw-r--r-- | wcsmbs/wcsnrtombs.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/wcsmbs/wcsnrtombs.c b/wcsmbs/wcsnrtombs.c index 37b525b..815d7ad 100644 --- a/wcsmbs/wcsnrtombs.c +++ b/wcsmbs/wcsnrtombs.c @@ -64,20 +64,16 @@ __wcsnrtombs (dst, src, nwc, len, ps) { char buf[256]; /* Just an arbitrary value. */ const wchar_t *inbuf = *src; - size_t written; data.outbuf = buf; data.outbufend = buf + sizeof (buf); do - { - status = (*__wcsmbs_gconv_fcts.tomb->fct) (__wcsmbs_gconv_fcts.tomb, - &data, - (const char **) &inbuf, - (const char *) srcend, - &written, 0); - result += written; - } + status = (*__wcsmbs_gconv_fcts.tomb->fct) (__wcsmbs_gconv_fcts.tomb, + &data, + (const char **) &inbuf, + (const char *) srcend, + &result, 0); while (status == GCONV_FULL_OUTPUT); if ((status == GCONV_OK || status == GCONV_EMPTY_INPUT) |