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_init.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_init.c')
-rw-r--r-- | ares_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ares_init.c b/ares_init.c index e32633f..e837190 100644 --- a/ares_init.c +++ b/ares_init.c @@ -181,7 +181,7 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options, */ gettimeofday(&tv, NULL); channel->next_id = (unsigned short) - (tv.tv_sec ^ tv.tv_usec ^ getpid()) & 0xffff; + ((tv.tv_sec ^ tv.tv_usec ^ getpid()) & 0xffff); channel->queries = NULL; @@ -893,7 +893,7 @@ static int config_sortlist(struct apattern **sortlist, int *nsort, sizeof(pat.addr.addr6))) > 0) { pat.type = PATTERN_CIDR; - pat.mask.bits = bits; + pat.mask.bits = (unsigned short)bits; pat.family = AF_INET6; if (!sortlist_alloc(sortlist, nsort, &pat)) return ARES_ENOMEM; @@ -903,7 +903,7 @@ static int config_sortlist(struct apattern **sortlist, int *nsort, sizeof(pat.addr.addr4))) > 0) { pat.type = PATTERN_CIDR; - pat.mask.bits = bits; + pat.mask.bits = (unsigned short)bits; pat.family = AF_INET; if (!sortlist_alloc(sortlist, nsort, &pat)) return ARES_ENOMEM; |