summaryrefslogtreecommitdiff
path: root/ares_send.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-08 17:01:40 +0000
committerYang Tse <yangsita@gmail.com>2007-02-08 17:01:40 +0000
commitd145c09ef105cb5a1aa16518bea2afbed8774549 (patch)
tree33caafeb7851b33447467b306a17f11501a56bf7 /ares_send.c
parent5d5bf03803d22f464fecb827cadcaa41fc4c4bcb (diff)
downloadc-ares-d145c09ef105cb5a1aa16518bea2afbed8774549.tar.gz
c-ares-d145c09ef105cb5a1aa16518bea2afbed8774549.tar.bz2
c-ares-d145c09ef105cb5a1aa16518bea2afbed8774549.zip
compiler warning fix
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 89efec0..6d17a1c 100644
--- a/ares_send.c
+++ b/ares_send.c
@@ -73,7 +73,7 @@ void ares_send(ares_channel channel, const unsigned char *qbuf, int qlen,
}
/* Compute the query ID. Start with no timeout. */
- query->qid = DNS_HEADER_QID(qbuf);
+ query->qid = (unsigned short)DNS_HEADER_QID(qbuf);
query->timeout = 0;
/* Form the TCP query buffer by prepending qlen (as two