summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares_parse_srv_reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ares_parse_srv_reply.c b/ares_parse_srv_reply.c
index 9c7eb6e..4ad34b6 100644
--- a/ares_parse_srv_reply.c
+++ b/ares_parse_srv_reply.c
@@ -139,11 +139,11 @@ ares_parse_srv_reply (const unsigned char *abuf, int alen,
srv_last = srv_curr;
vptr = aptr;
- srv_curr->priority = DNS__16BIT(vptr);
+ srv_curr->priority = (unsigned short)DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
- srv_curr->weight = DNS__16BIT(vptr);
+ srv_curr->weight = (unsigned short)DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
- srv_curr->port = DNS__16BIT(vptr);
+ srv_curr->port = (unsigned short)DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len);