summaryrefslogtreecommitdiff
path: root/ares_init.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-23 08:00:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-23 08:00:56 +0000
commitd0d3f7ff6c33fdf71b6320c493ada7e0d60a590c (patch)
treed81e9158014bc0ea0d12b30304b2964fd9cf8ec7 /ares_init.c
parent33907a6f1055846aec68ebf89c6440fdfc5ea5a2 (diff)
downloadc-ares-d0d3f7ff6c33fdf71b6320c493ada7e0d60a590c.tar.gz
c-ares-d0d3f7ff6c33fdf71b6320c493ada7e0d60a590c.tar.bz2
c-ares-d0d3f7ff6c33fdf71b6320c493ada7e0d60a590c.zip
more int/long fixes after icc "remarks"
Diffstat (limited to 'ares_init.c')
-rw-r--r--ares_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_init.c b/ares_init.c
index 88d60b4..c40afda 100644
--- a/ares_init.c
+++ b/ares_init.c
@@ -661,7 +661,7 @@ static int config_sortlist(struct apattern **sortlist, int *nsort,
q = str;
while (*q && *q != '/' && *q != ';' && !isspace((unsigned char)*q))
q++;
- if (ip_addr(str, q - str, &pat.addr) == 0)
+ if (ip_addr(str, (int)(q - str), &pat.addr) == 0)
{
/* We have a pattern address; now determine the mask. */
if (*q == '/')
@@ -770,7 +770,7 @@ static int set_options(ares_channel channel, const char *str)
static char *try_config(char *s, const char *opt)
{
- int len;
+ size_t len;
len = strlen(opt);
if (strncmp(s, opt, len) != 0 || !isspace((unsigned char)s[len]))