From 2e9eb1a2ac8ec3953d8dba75248a3bab0e352b10 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 6 Mar 2010 01:23:09 +0000 Subject: removed usage of 's6_addr', fixing compilation issue triggered with no longer using 'in6_addr' but only our 'ares_in6_addr' struct --- ares/ares_gethostbyaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ares/ares_gethostbyaddr.c') diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c index 4b1dad36d..a2c3a9076 100644 --- a/ares/ares_gethostbyaddr.c +++ b/ares/ares_gethostbyaddr.c @@ -272,7 +272,7 @@ static void ptr_rr_name(char *name, const struct ares_addr *addr) } else { - unsigned char *bytes = (unsigned char *)&addr->addrV6.s6_addr; + unsigned char *bytes = (unsigned char *)&addr->addrV6; /* There are too many arguments to do this in one line using * minimally C89-compliant compilers */ sprintf(name, -- cgit v1.2.3