From 35d4c57051574b33fd9b120932b385be35bd1f65 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 23 Nov 2009 01:24:17 +0000 Subject: - Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and ares_addr6ttl in order to prevent name space pollution, along with necessary changes to code base and man pages.This change does not break ABI, there is no need to recompile existing applications. But existing applications using these structs with the old name will need source code adjustments when recompiled using c-ares 1.6.1. --- ares/ares_parse_a_reply.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ares/ares_parse_a_reply.c') diff --git a/ares/ares_parse_a_reply.c b/ares/ares_parse_a_reply.c index 3d59c8aa4..a6ed7dd2f 100644 --- a/ares/ares_parse_a_reply.c +++ b/ares/ares_parse_a_reply.c @@ -54,7 +54,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen, struct hostent **host, - struct addrttl *addrttls, int *naddrttls) + struct ares_addrttl *addrttls, int *naddrttls) { unsigned int qdcount, ancount; int status, i, rr_type, rr_class, rr_len, rr_ttl, naddrs; @@ -157,7 +157,7 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen, } if (naddrs < max_addr_ttls) { - struct addrttl * const at = &addrttls[naddrs]; + struct ares_addrttl * const at = &addrttls[naddrs]; if (aptr + sizeof(struct in_addr) > abuf + alen) { status = ARES_EBADRESP; -- cgit v1.2.3