summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/gethostbyht.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/libnetworking/libc/gethostbyht.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 'cpukit/libnetworking/libc/gethostbyht.c')
-rw-r--r--cpukit/libnetworking/libc/gethostbyht.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c
index 65979b7f8a..e20414ca45 100644
--- a/cpukit/libnetworking/libc/gethostbyht.c
+++ b/cpukit/libnetworking/libc/gethostbyht.c
@@ -252,7 +252,7 @@ again:
if (*cur=='#' || *cur=='\n') goto parseerror;
/* first, the ip number */
pe->h_name=cur;
- while (cur<last && !isspace(*cur)) cur++;
+ while (cur<last && !isspace((int)*cur)) cur++;
if (cur>=last) return 0;
if (*cur=='\n') goto parseerror;
{
@@ -278,9 +278,9 @@ again:
++cur;
/* now the aliases */
for (aliasidx=0;aliasidx<9;++aliasidx) {
- while (cur<last && isblank(*cur)) ++cur;
+ while (cur<last && isblank((int)*cur)) ++cur;
pe->h_aliases[aliasidx]=cur;
- while (cur<last && !isspace(*cur)) ++cur;
+ while (cur<last && !isspace((int)*cur)) ++cur;
{
char *from=pe->h_aliases[aliasidx];
int len=cur-from;
@@ -291,7 +291,7 @@ again:
*dest=0; ++dest;
}
if (*cur=='\n') { ++cur; ++aliasidx; break; }
- if (cur>=last || !isblank(*cur)) break;
+ if (cur>=last || !isblank((int)*cur)) break;
cur++;
}
pe->h_aliases[aliasidx]=0;