summaryrefslogtreecommitdiff
path: root/ares_send.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-08-21 19:18:53 +0200
committerYang Tse <yangsita@gmail.com>2011-08-21 19:18:53 +0200
commit1089cf6052dc90998d1d7b6dd3b8770fd1b273ce (patch)
tree0e46a01de179e5dfa05efab6518f22f79e6b26ed /ares_send.c
parentb816675c0f1dddfbff5fb1edc99ee484ccf4c1b6 (diff)
downloadc-ares-1089cf6052dc90998d1d7b6dd3b8770fd1b273ce.tar.gz
c-ares-1089cf6052dc90998d1d7b6dd3b8770fd1b273ce.tar.bz2
c-ares-1089cf6052dc90998d1d7b6dd3b8770fd1b273ce.zip
ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions
Fixing compiler warnings existing definitions triggered on these.
Diffstat (limited to 'ares_send.c')
-rw-r--r--ares_send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_send.c b/ares_send.c
index 37b0704..75a84f6 100644
--- a/ares_send.c
+++ b/ares_send.c
@@ -77,7 +77,7 @@ void ares_send(ares_channel channel, const unsigned char *qbuf, int qlen,
}
/* Compute the query ID. Start with no timeout. */
- query->qid = (unsigned short)DNS_HEADER_QID(qbuf);
+ query->qid = DNS_HEADER_QID(qbuf);
query->timeout.tv_sec = 0;
query->timeout.tv_usec = 0;