mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
1999-03-15 Ulrich Drepper <drepper@cygnus.com> * iconv/gconv.h (gconv_fct): Change parameter from `char' to `unsigned char'. (gconv_step_data): Likewise. * iconv/gconv_int.h (__gconv): Likewise. (__BUILINT_TRANS): Likewise. * iconv/gconv.c (__gconv): Likewise. * iconv/iconv.c (iconv): Add casts for call of __gconv. * iconv/skeleton.c: Change local parameters and variable from `char' to `unsigned char'. Remove casts from calls into modules. * iconvdata/iso-2022-jp.c (gconv): Change local variable outbuf from `char' to `unsigned char'. * wcsmbs/btowc.c: Change pointers from `char *' to `unsigned char *'. * wcsmbs/mbrtowc.c: Likewise. * wcsmbs/mbsnrtowcs.c: Likewise. * wcsmbs/mbsrtowcs.c: Likewise. * wcsmbs/wcrtomb.c: Likewise. * wcsmbs/wcsnrtombs.c: Likewise. * wcsmbs/wcsrtombs.c: Likewise. * wcsmbs/wctob.c: Likewise.
This commit is contained in:
@ -31,8 +31,8 @@ __btowc (c)
|
||||
{
|
||||
wchar_t result;
|
||||
struct gconv_step_data data;
|
||||
char inbuf[1];
|
||||
const char *inptr = inbuf;
|
||||
unsigned char inbuf[1];
|
||||
const unsigned char *inptr = inbuf;
|
||||
size_t dummy;
|
||||
int status;
|
||||
|
||||
@ -42,7 +42,7 @@ __btowc (c)
|
||||
return WEOF;
|
||||
|
||||
/* Tell where we want the result. */
|
||||
data.outbuf = (char *) &result;
|
||||
data.outbuf = (unsigned char *) &result;
|
||||
data.outbufend = data.outbuf + sizeof (wchar_t);
|
||||
data.invocation_counter = 0;
|
||||
data.internal_use = 1;
|
||||
|
Reference in New Issue
Block a user