summaryrefslogtreecommitdiff
path: root/ares_gethostbyaddr.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_gethostbyaddr.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_gethostbyaddr.c')
-rw-r--r--ares_gethostbyaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_gethostbyaddr.c b/ares_gethostbyaddr.c
index 4b1dad3..a2c3a90 100644
--- a/ares_gethostbyaddr.c
+++ b/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,