diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-01 01:42:13 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-01 01:42:13 +0000 |
commit | fb38ee15e249e187ffcbb91df82684a61783945c (patch) | |
tree | e2fb7c8f7cdb6efbd69bac999aaea5f0af08ecc0 /ares_send.c | |
parent | 4a30753b47510fd84a2189cf02ea0a53ea7f1f2d (diff) | |
download | c-ares-fb38ee15e249e187ffcbb91df82684a61783945c.tar.gz c-ares-fb38ee15e249e187ffcbb91df82684a61783945c.tar.bz2 c-ares-fb38ee15e249e187ffcbb91df82684a61783945c.zip |
compiler warning fix
Diffstat (limited to 'ares_send.c')
-rw-r--r-- | ares_send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_send.c b/ares_send.c index a279ee9..89efec0 100644 --- a/ares_send.c +++ b/ares_send.c @@ -79,8 +79,8 @@ void ares_send(ares_channel channel, const unsigned char *qbuf, int qlen, /* Form the TCP query buffer by prepending qlen (as two * network-order bytes) to qbuf. */ - query->tcpbuf[0] = (qlen >> 8) & 0xff; - query->tcpbuf[1] = qlen & 0xff; + query->tcpbuf[0] = (unsigned char)((qlen >> 8) & 0xff); + query->tcpbuf[1] = (unsigned char)(qlen & 0xff); memcpy(query->tcpbuf + 2, qbuf, qlen); query->tcplen = qlen + 2; |