diff options
author | Steinar H. Gunderson <sesse@google.com> | 2007-09-29 21:57:05 +0000 |
---|---|---|
committer | Steinar H. Gunderson <sesse@google.com> | 2007-09-29 21:57:05 +0000 |
commit | 60519063eaa56914e1bf20eb8510030897f940c9 (patch) | |
tree | 725f70aaef840610e48971b8ca1b3ff69e7d6dc9 | |
parent | ff7137ad74295d4110a47a1b2e9877760ffe6495 (diff) | |
download | c-ares-60519063eaa56914e1bf20eb8510030897f940c9.tar.gz c-ares-60519063eaa56914e1bf20eb8510030897f940c9.tar.bz2 c-ares-60519063eaa56914e1bf20eb8510030897f940c9.zip |
Use ISDIGIT instead of isdigit; fixes a gcc warning.
-rw-r--r-- | ares_gethostbyname.c | 2 | ||||
-rw-r--r-- | ares_process.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c index 7a4aad6..336481d 100644 --- a/ares_gethostbyname.c +++ b/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_process.c b/ares_process.c index 611d24d..0a133a2 100644 --- a/ares_process.c +++ b/ares_process.c @@ -44,6 +44,7 @@ #include <sys/filio.h> #endif +#include <assert.h> #include <string.h> #include <stdlib.h> #include <fcntl.h> |