aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sesse@google.com>2007-09-29 21:57:05 +0000
committerSteinar H. Gunderson <sesse@google.com>2007-09-29 21:57:05 +0000
commit84fcff79f4f254c24d06872e44203bedc2d97565 (patch)
tree962f3627b930dae9ec4c4d09b0b9b895116b4ec8 /ares
parentf58ba5ab1cb25b873f46a27a2b0422e3301100ba (diff)
Use ISDIGIT instead of isdigit; fixes a gcc warning.
Diffstat (limited to 'ares')
-rw-r--r--ares/ares_gethostbyname.c2
-rw-r--r--ares/ares_process.c1
2 files changed, 2 insertions, 1 deletions
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 <sys/filio.h>
#endif
+#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>