Skip to content
Snippets Groups Projects
Commit d5de8495 authored by Gisle Vanem's avatar Gisle Vanem
Browse files

Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.

parent 6569a238
No related branches found
No related tags found
No related merge requests found
......@@ -120,12 +120,12 @@ ares_parse_srv_reply (const unsigned char *abuf, int alen,
break;
}
srv[i].priority = ntohs (*((uint16_t *)aptr));
aptr += sizeof(uint16_t);
srv[i].weight = ntohs (*((uint16_t *)aptr));
aptr += sizeof(uint16_t);
srv[i].port = ntohs (*((uint16_t *)aptr));
aptr += sizeof(uint16_t);
srv[i].priority = ntohs (*((u_int16_t *)aptr));
aptr += sizeof(u_int16_t);
srv[i].weight = ntohs (*((u_int16_t *)aptr));
aptr += sizeof(u_int16_t);
srv[i].port = ntohs (*((u_int16_t *)aptr));
aptr += sizeof(u_int16_t);
status = ares_expand_name (aptr, abuf, alen, &srv[i].host, &len);
if (status != ARES_SUCCESS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment