diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-04-19 23:26:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-19 23:26:14 +0000 |
commit | 86661ab6466b87390739d1e7498877a6fcd5708d (patch) | |
tree | d4661b817e499bd9ac1ef9e6617ed51e8b2ef193 | |
parent | c0eb11ec6c9dd8781cbf658ba19b60fce898809c (diff) | |
download | c-ares-86661ab6466b87390739d1e7498877a6fcd5708d.tar.gz c-ares-86661ab6466b87390739d1e7498877a6fcd5708d.tar.bz2 c-ares-86661ab6466b87390739d1e7498877a6fcd5708d.zip |
sortlist_alloc() is never used on win32, so ifdef out it to prevent warning
-rw-r--r-- | ares_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_init.c b/ares_init.c index 8d1f335..05c65d9 100644 --- a/ares_init.c +++ b/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) { |