1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 00:19:39 +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

View File

@ -35,8 +35,9 @@ int ares_parse_a_reply(const unsigned char *abuf, int alen,
struct hostent **host)
{
unsigned int qdcount, ancount;
int status, i, len, rr_type, rr_class, rr_len, naddrs;
int status, i, rr_type, rr_class, rr_len, naddrs;
int naliases;
long len;
const unsigned char *aptr;
char *hostname, *rr_name, *rr_data, **aliases;
struct in_addr *addrs;