diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-20 21:47:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-20 21:47:37 +0000 |
commit | ff0f694d466fb114c185bf464811658f97d012f1 (patch) | |
tree | 1eef0becdabdf6a9902d265a84fc9bf9fd9389d5 /cpukit/libnetworking/libc/gethostbydns.c | |
parent | changed version to 980820-BSD (diff) | |
download | rtems-ff0f694d466fb114c185bf464811658f97d012f1.tar.bz2 |
Fixed many warnings.
Diffstat (limited to 'cpukit/libnetworking/libc/gethostbydns.c')
-rw-r--r-- | cpukit/libnetworking/libc/gethostbydns.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libnetworking/libc/gethostbydns.c b/cpukit/libnetworking/libc/gethostbydns.c index ceb7088160..3d80ffde7a 100644 --- a/cpukit/libnetworking/libc/gethostbydns.c +++ b/cpukit/libnetworking/libc/gethostbydns.c @@ -518,7 +518,7 @@ _gethostbydnsname(name, af) * disallow names consisting only of digits/dots, unless * they end in a dot. */ - if (isdigit(name[0])) + if (isdigit((int)name[0])) for (cp = name;; ++cp) { if (!*cp) { if (*--cp == '.') @@ -547,10 +547,10 @@ _gethostbydnsname(name, af) h_errno = NETDB_SUCCESS; return (&host); } - if (!isdigit(*cp) && *cp != '.') + if (!isdigit((int)*cp) && *cp != '.') break; } - if ((isxdigit(name[0]) && strchr(name, ':') != NULL) || + if ((isxdigit((int)name[0]) && strchr(name, ':') != NULL) || name[0] == ':') for (cp = name;; ++cp) { if (!*cp) { @@ -578,7 +578,7 @@ _gethostbydnsname(name, af) h_errno = NETDB_SUCCESS; return (&host); } - if (!isxdigit(*cp) && *cp != ':' && *cp != '.') + if (!isxdigit((int)*cp) && *cp != ':' && *cp != '.') break; } |