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/adig.c | |
parent | 7174ca7a20dd18f4b42f9b37f4260865365b71d2 (diff) | |
download | curl-c7fe8a7a11456abe367d3d815f3c2faf62900fc3.tar.gz |
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/adig.c')
-rw-r--r-- | ares/adig.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ares/adig.c b/ares/adig.c index 0513d2fd7..2208d9a23 100644 --- a/ares/adig.c +++ b/ares/adig.c @@ -370,7 +370,8 @@ static const unsigned char *display_question(const unsigned char *aptr, int alen) { char *name; - int type, dnsclass, status, len; + int type, dnsclass, status; + long len; /* Parse the question name. */ status = ares_expand_name(aptr, abuf, alen, &name, &len); @@ -408,7 +409,8 @@ static const unsigned char *display_rr(const unsigned char *aptr, { const unsigned char *p; char *name; - int type, dnsclass, ttl, dlen, status, len; + int type, dnsclass, ttl, dlen, status; + long len; struct in_addr addr; /* Parse the RR name. */ |