aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_parse_srv_reply.c
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2009-09-05 15:12:30 +0000
committerGunter Knauf <gk@gknw.de>2009-09-05 15:12:30 +0000
commitf3611c2773c95128166e1fd84726a2f3da50629b (patch)
tree94dc27a08602d355384ad87616eadbe8f730800e /ares/ares_parse_srv_reply.c
parentd5de8495523f63f79c6013da009c759ca063edfa (diff)
changed u_int16_t to unsigned short because it is the only place within ares and curl where such a type would be used;
also it broke many autobuilds. We should probably introduce an ares_port_t if we want to use a type here.
Diffstat (limited to 'ares/ares_parse_srv_reply.c')
-rw-r--r--ares/ares_parse_srv_reply.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ares/ares_parse_srv_reply.c b/ares/ares_parse_srv_reply.c
index 61f0be1ea..5b1e218d4 100644
--- a/ares/ares_parse_srv_reply.c
+++ b/ares/ares_parse_srv_reply.c
@@ -120,12 +120,12 @@ ares_parse_srv_reply (const unsigned char *abuf, int alen,
break;
}
- 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);
+ srv[i].priority = ntohs (*((unsigned short *)aptr));
+ aptr += sizeof(unsigned short);
+ srv[i].weight = ntohs (*((unsigned short *)aptr));
+ aptr += sizeof(unsigned short);
+ srv[i].port = ntohs (*((unsigned short *)aptr));
+ aptr += sizeof(unsigned short);
status = ares_expand_name (aptr, abuf, alen, &srv[i].host, &len);
if (status != ARES_SUCCESS)