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/ftpd | |
parent | 06443cfa4b6ae5abcdbf52337d91dd7c5f582d35 (diff) |
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/ftpd')
-rw-r--r-- | cpukit/ftpd/ftpd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/ftpd/ftpd.c b/cpukit/ftpd/ftpd.c index 569f8aab44..92f2946c94 100644 --- a/cpukit/ftpd/ftpd.c +++ b/cpukit/ftpd/ftpd.c @@ -1568,18 +1568,18 @@ skip_options(char **p) char* buf = *p; char* last = NULL; while(1) { - while(isspace(*buf)) + while(isspace((int)*buf)) ++buf; if(*buf == '-') { if(*++buf == '-') { /* `--' should terminate options */ - if(isspace(*++buf)) { + if(isspace((int)*++buf)) { last = buf; do ++buf; - while(isspace(*buf)); + while(isspace((int)*buf)); break; } } - while(*buf && !isspace(*buf)) + while(*buf && !isspace((int)*buf)) ++buf; last = buf; } @@ -1612,18 +1612,18 @@ split_command(char *buf, char **cmd, char **opts, char **args) { char* eoc; char* p = buf; - while(isspace(*p)) + while(isspace((int)*p)) ++p; *cmd = p; - while(*p && !isspace(*p)) + while(*p && !isspace((int)*p)) { - *p = toupper(*p); + *p = toupper((int)*p); ++p; } eoc = p; if(*p) *p++ = '\0'; - while(isspace(*p)) + while(isspace((int)*p)) ++p; *opts = p; skip_options(&p); |