diff options
Diffstat (limited to 'libc/misc/wctype')
-rw-r--r-- | libc/misc/wctype/_wctype.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libc/misc/wctype/_wctype.c b/libc/misc/wctype/_wctype.c index 16bc5237a..9887808b6 100644 --- a/libc/misc/wctype/_wctype.c +++ b/libc/misc/wctype/_wctype.c @@ -502,7 +502,6 @@ libc_hidden_def(towupper) #ifdef L_wctype static const unsigned char typestring[] = __CTYPE_TYPESTRING; -/* extern const unsigned char typestring[]; */ /* libc_hidden_proto(wctype) */ wctype_t wctype(const char *property) @@ -513,7 +512,7 @@ wctype_t wctype(const char *property) p = typestring; i = 1; do { - if (!strcmp(property, ++p)) { + if (!strcmp(property, (const char *) ++p)) { return i; } ++i; @@ -913,10 +912,10 @@ wctrans_t wctrans(const char *property) const unsigned char *p; int i; - p = transstring; + p = (const unsigned char *) transstring; i = 1; do { - if (!strcmp(property, ++p)) { + if (!strcmp(property, (const char*) ++p)) { return i; } ++i; |