1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 19:59:41 +00:00

compiler warning fix

This commit is contained in:
Yang Tse
2007-02-08 17:01:40 +00:00
parent 5d5bf03803
commit d145c09ef1
2 changed files with 7 additions and 7 deletions

View File

@ -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