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 | 54db98c220255737456b1311cb9534c9e95215c6 (patch) | |
tree | a9ee1b3e102a5d9c099068a220412e5989f520d8 /ares/ares_init.c | |
parent | 5565f45f5e5213df213336f99d19a471c1ac2632 (diff) |
compiler warning fix
Diffstat (limited to 'ares/ares_init.c')
-rw-r--r-- | ares/ares_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c index e32633fde..e8371908a 100644 --- a/ares/ares_init.c +++ b/ares/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; |