summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-03-06 01:23:09 +0000
committerYang Tse <yangsita@gmail.com>2010-03-06 01:23:09 +0000
commite51156c080eb3e25d850b22478b5206ea71ed116 (patch)
treec5daf78de08ccc395ffe88cd11d61640704c0bba /ares_gethostbyname.c
parent0a076df87f03d4d3e7b6bcee092db56acd63e2e3 (diff)
downloadc-ares-e51156c080eb3e25d850b22478b5206ea71ed116.tar.gz
c-ares-e51156c080eb3e25d850b22478b5206ea71ed116.tar.bz2
c-ares-e51156c080eb3e25d850b22478b5206ea71ed116.zip
removed usage of 's6_addr', fixing compilation issue triggered with no
longer using 'in6_addr' but only our 'ares_in6_addr' struct
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index bf88309..ebad670 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -504,7 +504,9 @@ static int get6_address_index(const struct ares_in6_addr *addr,
{
if (sortlist[i].family != AF_INET6)
continue;
- if (!ares_bitncmp(&addr->s6_addr, &sortlist[i].addrV6.s6_addr, sortlist[i].mask.bits))
+ if (!ares_bitncmp(addr,
+ &sortlist[i].addrV6,
+ sortlist[i].mask.bits))
break;
}
return i;