aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_parse_a_reply.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-23 01:24:17 +0000
committerYang Tse <yangsita@gmail.com>2009-11-23 01:24:17 +0000
commit35d4c57051574b33fd9b120932b385be35bd1f65 (patch)
tree40d87b1beee5f95daecd7ec58d0863b69878c1bf /ares/ares_parse_a_reply.c
parentf6114f2ec4fcfe966cb4b30303aaa06666165798 (diff)
- 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.
Diffstat (limited to 'ares/ares_parse_a_reply.c')
-rw-r--r--ares/ares_parse_a_reply.c4
1 files changed, 2 insertions, 2 deletions
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;