mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2026-10-05 04:49:04 +00:00
compiler warning fix
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user