summaryrefslogtreecommitdiff
path: root/ares_parse_srv_reply.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2009-09-05 12:33:08 (GMT)
committerGisle Vanem <gvanem@broadpark.no>2009-09-05 12:33:08 (GMT)
commit6616621ffeff1d12b04627aa4ba98dee9187ce57 (patch)
treeafa9f6a0a5241558e85253c9ffb1b992c1dea006 /ares_parse_srv_reply.c
parentf4d9eacfe4c997c4fe372374f194b1a6d24e6c85 (diff)
downloadc-ares-6616621ffeff1d12b04627aa4ba98dee9187ce57.zip
c-ares-6616621ffeff1d12b04627aa4ba98dee9187ce57.tar.gz
c-ares-6616621ffeff1d12b04627aa4ba98dee9187ce57.tar.bz2
Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.
Diffstat (limited to 'ares_parse_srv_reply.c')
-rw-r--r--ares_parse_srv_reply.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ares_parse_srv_reply.c b/ares_parse_srv_reply.c
index 1d1b98d..61f0be1 100644
--- a/ares_parse_srv_reply.c
+++ b/ares_parse_srv_reply.c
@@ -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)