From: Steinar H. Gunderson Date: Sat, 29 Sep 2007 21:57:05 +0000 (+0000) Subject: Use ISDIGIT instead of isdigit; fixes a gcc warning. X-Git-Tag: curl-7_17_1~154 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84fcff79f4f254c24d06872e44203bedc2d97565;p=curl Use ISDIGIT instead of isdigit; fixes a gcc warning. --- diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c index 7a4aad6e3..336481db5 100644 --- a/ares/ares_gethostbyname.c +++ b/ares/ares_gethostbyname.c @@ -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++; diff --git a/ares/ares_process.c b/ares/ares_process.c index 611d24d48..0a133a27f 100644 --- a/ares/ares_process.c +++ b/ares/ares_process.c @@ -44,6 +44,7 @@ #include #endif +#include #include #include #include