1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-12-09 11:02:13 +00:00

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
This commit is contained in:
Daniel Stenberg
2004-02-23 07:52:20 +00:00
parent 3f0b19ea45
commit 961876c001
6 changed files with 11 additions and 7 deletions

6
adig.c
View File

@ -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. */