]> granicus.if.org Git - curl/commitdiff
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/ares_gethostbyname.c
ares/ares_process.c

index 7a4aad6e30d91f7d8eae9ad36946d6d9a4080c1b..336481db5430dc6e6c14c28c8a4fcd42159076ac 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 611d24d484e5461dd6b08a2ff4b19f340c027e3a..0a133a27fbe44515812defc8b3d3fc257ee49501 100644 (file)
@@ -44,6 +44,7 @@
 #include <sys/filio.h>
 #endif
 
+#include <assert.h>
 #include <string.h>
 #include <stdlib.h>
 #include <fcntl.h>