summaryrefslogtreecommitdiffstats
path: root/cpukit/httpd/webs.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/httpd/webs.c')
-rw-r--r--cpukit/httpd/webs.c9
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])) {