Use ISDIGIT instead of isdigit; fixes a gcc warning.
authorSteinar H. Gunderson <sesse@google.com>
Sat, 29 Sep 2007 21:57:05 +0000 (21:57 +0000)
committerSteinar H. Gunderson <sesse@google.com>
Sat, 29 Sep 2007 21:57:05 +0000 (21:57 +0000)
ares_gethostbyname.c
ares_process.c

index 7a4aad6..336481d 100644 (file)
@@ -215,7 +215,7 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac
       const char *p;
       for (p = name; *p; p++)
         {
-          if (!isdigit(*p) && *p != '.') {
+          if (!ISDIGIT(*p) && *p != '.') {
             return 0;
           } else if (*p == '.') {
             numdots++;
index 611d24d..0a133a2 100644 (file)
@@ -44,6 +44,7 @@
 #include <sys/filio.h>
 #endif
 
+#include <assert.h>
 #include <string.h>
 #include <stdlib.h>
 #include <fcntl.h>