summaryrefslogtreecommitdiff
path: root/libc/misc/wctype
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-21 14:12:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-21 14:12:08 +0000
commiteebbc87bcc8d5bc6916870b7dd6cc4603f728a94 (patch)
tree60da3db81a886889e26663017d3d88e7bf88d5a4 /libc/misc/wctype
parentd0f22a0224e92514a3c6015b4e7afdb5836c333b (diff)
more of pointer signedness warnings removed
Diffstat (limited to 'libc/misc/wctype')
-rw-r--r--libc/misc/wctype/_wctype.c7
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;