aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-19 23:26:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-19 23:26:14 +0000
commite78ddf0a95488d2317da3a7a33d999e310329c61 (patch)
treedc42418fac1dda6765b40392eda8aab0466309cf /ares
parent5f0366c2cb002d1d067abe28c4980930015fff36 (diff)
sortlist_alloc() is never used on win32, so ifdef out it to prevent warning
Diffstat (limited to 'ares')
-rw-r--r--ares/ares_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index 8d1f335b7..05c65d945 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -1010,6 +1010,7 @@ static const char *try_option(const char *p, const char *q, const char *opt)
return ((size_t)(q - p) > len && !strncmp(p, opt, len)) ? &p[len] : NULL;
}
+#ifndef WIN32
static int sortlist_alloc(struct apattern **sortlist, int *nsort, struct apattern *pat)
{
struct apattern *newsort;
@@ -1022,7 +1023,6 @@ static int sortlist_alloc(struct apattern **sortlist, int *nsort, struct apatter
return 1;
}
-#ifndef WIN32
static int ip_addr(const char *ipbuf, int len, struct in_addr *addr)
{