summaryrefslogtreecommitdiff
path: root/ares_parse_srv_reply.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-08-21 17:18:53 (GMT)
committerYang Tse <yangsita@gmail.com>2011-08-21 17:18:53 (GMT)
commit1089cf6052dc90998d1d7b6dd3b8770fd1b273ce (patch)
tree0e46a01de179e5dfa05efab6518f22f79e6b26ed /ares_parse_srv_reply.c
parentb816675c0f1dddfbff5fb1edc99ee484ccf4c1b6 (diff)
downloadc-ares-1089cf6052dc90998d1d7b6dd3b8770fd1b273ce.zip
c-ares-1089cf6052dc90998d1d7b6dd3b8770fd1b273ce.tar.gz
c-ares-1089cf6052dc90998d1d7b6dd3b8770fd1b273ce.tar.bz2
ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions
Fixing compiler warnings existing definitions triggered on these.
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 4ad34b6..9c7eb6e 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 = (unsigned short)DNS__16BIT(vptr);
+ srv_curr->priority = DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
- srv_curr->weight = (unsigned short)DNS__16BIT(vptr);
+ srv_curr->weight = DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
- srv_curr->port = (unsigned short)DNS__16BIT(vptr);
+ srv_curr->port = DNS__16BIT(vptr);
vptr += sizeof(unsigned short);
status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len);