mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.
This commit is contained in:
parent
6569a23890
commit
d5de849552
@ -120,12 +120,12 @@ ares_parse_srv_reply (const unsigned char *abuf, int alen,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
srv[i].priority = ntohs (*((uint16_t *)aptr));
|
srv[i].priority = ntohs (*((u_int16_t *)aptr));
|
||||||
aptr += sizeof(uint16_t);
|
aptr += sizeof(u_int16_t);
|
||||||
srv[i].weight = ntohs (*((uint16_t *)aptr));
|
srv[i].weight = ntohs (*((u_int16_t *)aptr));
|
||||||
aptr += sizeof(uint16_t);
|
aptr += sizeof(u_int16_t);
|
||||||
srv[i].port = ntohs (*((uint16_t *)aptr));
|
srv[i].port = ntohs (*((u_int16_t *)aptr));
|
||||||
aptr += sizeof(uint16_t);
|
aptr += sizeof(u_int16_t);
|
||||||
|
|
||||||
status = ares_expand_name (aptr, abuf, alen, &srv[i].host, &len);
|
status = ares_expand_name (aptr, abuf, alen, &srv[i].host, &len);
|
||||||
if (status != ARES_SUCCESS)
|
if (status != ARES_SUCCESS)
|
||||||
|
Loading…
Reference in New Issue
Block a user