summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/gethostbydns.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-12 16:26:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-12 16:26:16 +0000
commitbab5c5fac0fba6b6e0735e8bd9dfecb7bd474700 (patch)
treec6bea75d9210d3d657b34686d6592f329a01e3d9 /cpukit/libnetworking/libc/gethostbydns.c
parent2010-03-12 Sebastian Huber <Sebastian.Huber@embedded-brains.de> (diff)
downloadrtems-bab5c5fac0fba6b6e0735e8bd9dfecb7bd474700.tar.bz2
2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* ftpd/ftpd.c, httpd/asp.c, httpd/ejparse.c, httpd/emfdb.c, httpd/misc.c, httpd/um.c, httpd/webs.c, httpd/websuemf.c, libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_format.c, libfs/src/dosfs/msdos_misc.c, libfs/src/nfsclient/src/nfs.c, libmisc/capture/capture-cli.c, libmisc/monitor/mon-network.c, libmisc/shell/hexdump-odsyntax.c, libmisc/shell/main_ifconfig.c, libmisc/shell/shell.c, libmisc/shell/shell_makeargs.c, libmisc/uuid/parse.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/inet_network.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_init.c, libnetworking/libc/res_query.c, libnetworking/rtems/rtems_mii_ioctl.c, score/src/objectgetnameasstring.c: Readdress use of ctype methods per recommendation from D.J. Delorie on the newlib mailing list. We should pass an unsigned char into these methods.
Diffstat (limited to 'cpukit/libnetworking/libc/gethostbydns.c')
-rw-r--r--cpukit/libnetworking/libc/gethostbydns.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libnetworking/libc/gethostbydns.c b/cpukit/libnetworking/libc/gethostbydns.c
index 07d6f2042b..28c31713a0 100644
--- a/cpukit/libnetworking/libc/gethostbydns.c
+++ b/cpukit/libnetworking/libc/gethostbydns.c
@@ -516,7 +516,7 @@ _gethostbydnsname(
* disallow names consisting only of digits/dots, unless
* they end in a dot.
*/
- if (isdigit((int)name[0]))
+ if (isdigit((unsigned char)name[0]))
for (cp = name;; ++cp) {
if (!*cp) {
if (*--cp == '.')
@@ -545,10 +545,10 @@ _gethostbydnsname(
h_errno = NETDB_SUCCESS;
return (&host);
}
- if (!isdigit((int)*cp) && *cp != '.')
+ if (!isdigit((unsigned char)*cp) && *cp != '.')
break;
}
- if ((isxdigit((int)name[0]) && strchr(name, ':') != NULL) ||
+ if ((isxdigit((unsigned char)name[0]) && strchr(name, ':') != NULL) ||
name[0] == ':')
for (cp = name;; ++cp) {
if (!*cp) {
@@ -576,7 +576,7 @@ _gethostbydnsname(
h_errno = NETDB_SUCCESS;
return (&host);
}
- if (!isxdigit((int)*cp) && *cp != ':' && *cp != '.')
+ if (!isxdigit((unsigned char)*cp) && *cp != ':' && *cp != '.')
break;
}