summaryrefslogtreecommitdiff
path: root/ares_parse_srv_reply.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-08-21 13:43:36 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2011-08-21 13:43:36 (GMT)
commitd0c3cb6840e4b8e22b2fa4a944fe514992fd4aa4 (patch)
tree76871295e9156c31a36560749c17a3bb0a10515a /ares_parse_srv_reply.c
parent2d9a5acff5081303b7d4106875d42cce7fce043d (diff)
downloadc-ares-d0c3cb6840e4b8e22b2fa4a944fe514992fd4aa4.zip
c-ares-d0c3cb6840e4b8e22b2fa4a944fe514992fd4aa4.tar.gz
c-ares-d0c3cb6840e4b8e22b2fa4a944fe514992fd4aa4.tar.bz2
ares_parse_srv_reply: silence compiler warnings
... by adding ugly typecasts.
Diffstat (limited to 'ares_parse_srv_reply.c')
-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);