summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/hexdump-odsyntax.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-11 19:12:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-11 19:12:30 +0000
commit391b4dda25431a790ff21bdfd5c78c63b7a58f2a (patch)
tree76c59952dea26406e86aec808ae0da397b98ba2b /cpukit/libmisc/shell/hexdump-odsyntax.c
parent2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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 '')
-rw-r--r--cpukit/libmisc/shell/hexdump-odsyntax.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c
index e95441f789..3924a680af 100644
--- a/cpukit/libmisc/shell/hexdump-odsyntax.c
+++ b/cpukit/libmisc/shell/hexdump-odsyntax.c
@@ -219,7 +219,7 @@ odoffset(rtems_shell_hexdump_globals* globals, int argc, char ***argvp)
p = argc == 1 ? (*argvp)[0] : (*argvp)[1];
if (*p != '+' && (argc < 2 ||
- (!isdigit(p[0]) && (p[0] != 'x' || !isxdigit(p[1])))))
+ (!isdigit((int)p[0]) && (p[0] != 'x' || !isxdigit((int)p[1])))))
return;
base = 0;
@@ -229,7 +229,7 @@ odoffset(rtems_shell_hexdump_globals* globals, int argc, char ***argvp)
*/
if (p[0] == '+')
++p;
- if (p[0] == 'x' && isxdigit(p[1])) {
+ if (p[0] == 'x' && isxdigit((int)p[1])) {
++p;
base = 16;
} else if (p[0] == '0' && p[1] == 'x') {
@@ -239,9 +239,9 @@ odoffset(rtems_shell_hexdump_globals* globals, int argc, char ***argvp)
/* skip over the number */
if (base == 16)
- for (num = p; isxdigit(*p); ++p);
+ for (num = p; isxdigit((int)*p); ++p);
else
- for (num = p; isdigit(*p); ++p);
+ for (num = p; isdigit((int)*p); ++p);
/* check for no number */
if (num == p)