diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-11 19:12:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-11 19:12:30 +0000 |
commit | 391b4dda25431a790ff21bdfd5c78c63b7a58f2a (patch) | |
tree | 76c59952dea26406e86aec808ae0da397b98ba2b /cpukit/httpd | |
parent | 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-391b4dda25431a790ff21bdfd5c78c63b7a58f2a.tar.bz2 |
2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* ftpd/ftpd.c, httpd/uemf.c, httpd/um.c, httpd/webs.c,
httpd/websuemf.c, libblock/src/diskdevs.c,
libmisc/capture/capture-cli.c, libmisc/monitor/mon-network.c,
libmisc/shell/hexdump-odsyntax.c, libmisc/shell/main_ifconfig.c,
libmisc/uuid/parse.c, libnetworking/lib/ftpfs.c,
libnetworking/libc/gethostbyht.c, libnetworking/libc/getnetnamadr.c,
libnetworking/libc/inet_network.c,
libnetworking/rtems/rtems_mii_ioctl.c,
score/src/objectgetnameasstring.c: Fix warnings for ctype methods.
Diffstat (limited to 'cpukit/httpd')
-rw-r--r-- | cpukit/httpd/uemf.c | 8 | ||||
-rw-r--r-- | cpukit/httpd/um.c | 4 | ||||
-rw-r--r-- | cpukit/httpd/webs.c | 9 | ||||
-rw-r--r-- | cpukit/httpd/websuemf.c | 2 |
4 files changed, 12 insertions, 11 deletions
diff --git a/cpukit/httpd/uemf.c b/cpukit/httpd/uemf.c index d2d1eefe31..862a1451de 100644 --- a/cpukit/httpd/uemf.c +++ b/cpukit/httpd/uemf.c @@ -168,7 +168,7 @@ int emfInstGet(void) char_t *strlower(char_t *string) { - char_t *s; + unsigned char *s; a_assert(string); @@ -176,7 +176,7 @@ char_t *strlower(char_t *string) return NULL; } - s = string; + s = (unsigned char *)string; while (*s) { if (gisupper(*s)) { *s = (char_t) gtolower(*s); @@ -194,14 +194,14 @@ char_t *strlower(char_t *string) char_t *strupper(char_t *string) { - char_t *s; + unsigned char *s; a_assert(string); if (string == NULL) { return NULL; } - s = string; + s = (unsigned char *)string; while (*s) { if (gislower(*s)) { *s = (char_t) gtoupper(*s); diff --git a/cpukit/httpd/um.c b/cpukit/httpd/um.c index 5c59cfd25c..b2ea6671db 100644 --- a/cpukit/httpd/um.c +++ b/cpukit/httpd/um.c @@ -255,7 +255,7 @@ int umRestore(char_t *filename) static int umEncryptString(char_t *textString) { char_t *enMask; - char_t enChar; + unsigned char enChar; int numChars; a_assert(textString); @@ -1419,7 +1419,7 @@ static bool_t umCheckName(char_t *name) if (name && *name) { while (*name) { - if (gisspace(*name)) { + if (gisspace((int)*name)) { return FALSE; } diff --git a/cpukit/httpd/webs.c b/cpukit/httpd/webs.c index 5c22606782..8fe5a6aa65 100644 --- a/cpukit/httpd/webs.c +++ b/cpukit/httpd/webs.c @@ -861,7 +861,7 @@ static void websParseRequest(webs_t wp) value = T(""); } - while (gisspace(*value)) { + while (gisspace((int)*value)) { value++; } strlower(key); @@ -897,7 +897,7 @@ static void websParseRequest(webs_t wp) * Truncate authType at the next non-alpha character */ cp = authType; - while (gisalpha(*cp)) { + while (gisalpha((int)*cp)) { cp++; } *cp = '\0'; @@ -1667,14 +1667,15 @@ int websWriteDataNonBlock(webs_t wp, char *buf, int nChars) void websDecodeUrl(char_t *decoded, char_t *token, int len) { - char_t *ip, *op; + unsigned char *ip; + char_t *op; int num, i, c; a_assert(decoded); a_assert(token); op = decoded; - for (ip = token; *ip && len > 0; ip++, op++) { + for (ip = (unsigned char *)token; *ip && len > 0; ip++, op++) { if (*ip == '+') { *op = ' '; } else if (*ip == '%' && gisxdigit(ip[1]) && gisxdigit(ip[2])) { diff --git a/cpukit/httpd/websuemf.c b/cpukit/httpd/websuemf.c index 262956ee5f..267ada8c2f 100644 --- a/cpukit/httpd/websuemf.c +++ b/cpukit/httpd/websuemf.c @@ -84,7 +84,7 @@ int strcmpci(char_t *s1, char_t *s2) } do { - rc = gtolower(*s1) - gtolower(*s2); + rc = gtolower((int)*s1) - gtolower((int)*s2); if (*s1 == '\0') { break; } |