mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:43:32 +03: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:
parent
7174ca7a20
commit
c7fe8a7a11
6 changed files with 11 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue