diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 07:52:20 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 07:52:20 +0000 |
commit | c7fe8a7a11456abe367d3d815f3c2faf62900fc3 (patch) | |
tree | 0129ec768d659346b27655f3c6b272d2604a2177 /ares/ares_parse_ptr_reply.c | |
parent | 7174ca7a20dd18f4b42f9b37f4260865365b71d2 (diff) |
make ares_expand_name() take a long * instead of an int *, since we do
pointer arithmetic (ptr1 - ptr2) and to do that properly on 64bit we need
long
Diffstat (limited to 'ares/ares_parse_ptr_reply.c')
-rw-r--r-- | ares/ares_parse_ptr_reply.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ares/ares_parse_ptr_reply.c b/ares/ares_parse_ptr_reply.c index 13b3ab03b..0651a1e20 100644 --- a/ares/ares_parse_ptr_reply.c +++ b/ares/ares_parse_ptr_reply.c @@ -34,7 +34,8 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr, int addrlen, int family, struct hostent **host) { unsigned int qdcount, ancount; - int status, i, len, rr_type, rr_class, rr_len; + int status, i, rr_type, rr_class, rr_len; + long len; const unsigned char *aptr; char *ptrname, *hostname, *rr_name, *rr_data; struct hostent *hostent; |