diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 12:47:43 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 12:47:43 +0000 |
commit | 33eaf2e18b520bbab2047b2b2ecba2e2e40102c3 (patch) | |
tree | b9b00019605661a50b33722980198b89c2bb2bc8 /ares | |
parent | a054e5baf3798d4b4ba5b6b7c1f4287bd2049c51 (diff) |
minor fixes to avoid MIPSPro pedantic warnings
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c index 70f455361..519d95524 100644 --- a/ares/ares_init.c +++ b/ares/ares_init.c @@ -669,7 +669,7 @@ static int config_sortlist(struct apattern **sortlist, int *nsort, str = q + 1; while (*q && *q != ';' && !isspace((unsigned char)*q)) q++; - if (ip_addr(str, q - str, &pat.mask) != 0) + if (ip_addr(str, (int)(q - str), &pat.mask) != 0) natural_mask(&pat); } else @@ -783,9 +783,7 @@ static char *try_config(char *s, const char *opt) static const char *try_option(const char *p, const char *q, const char *opt) { - int len; - - len = strlen(opt); + size_t len = strlen(opt); return (q - p > len && strncmp(p, opt, len) == 0) ? p + len : NULL; } |