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 7174ca7a20
commit c7fe8a7a11
6 changed files with 11 additions and 7 deletions

View file

@ -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;