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/webs.c | |
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/webs.c')
-rw-r--r-- | cpukit/httpd/webs.c | 9 |
1 files changed, 5 insertions, 4 deletions
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])) { |