diff options
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; |