summaryrefslogtreecommitdiff
path: root/wcsmbs/btowc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-29 12:15:49 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-29 12:15:49 +0000
commit5e7a22c9c3d09ad8bdefb127eb4a0faeee5fbb0b (patch)
tree721a0884bdb59f87db85171a056d51b1e246e467 /wcsmbs/btowc.c
parentbf979eef1d8d6c6e9b5ad623d47ce9bab20b8be9 (diff)
downloadglibc-5e7a22c9c3d09ad8bdefb127eb4a0faeee5fbb0b.tar.gz
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/btowc.c')
-rw-r--r--wcsmbs/btowc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/wcsmbs/btowc.c b/wcsmbs/btowc.c
index 3ca5af2782..cca4645c19 100644
--- a/wcsmbs/btowc.c
+++ b/wcsmbs/btowc.c
@@ -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)