From eebbc87bcc8d5bc6916870b7dd6cc4603f728a94 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 21 Dec 2008 14:12:08 +0000 Subject: more of pointer signedness warnings removed --- libc/misc/wctype/_wctype.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libc/misc/wctype') 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; -- cgit v1.2.3