aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-26 22:19:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-26 22:19:20 +0000
commit4ba7ef34d1fc269b142627197c3eea34db3ffa6b (patch)
tree33be863fa0c014f64063d340ce26e0fbbfdbc162
parent4515d06465da15340c56d5b4f14ab4950fd59baa (diff)
fixed a "comparison between signed and unsigned" warning
-rw-r--r--ares/ares_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index 519d95524..444fd8a66 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -784,7 +784,7 @@ static char *try_config(char *s, const char *opt)
static const char *try_option(const char *p, const char *q, const char *opt)
{
size_t len = strlen(opt);
- return (q - p > len && strncmp(p, opt, len) == 0) ? p + len : NULL;
+ return ((size_t)(q - p) > len && !strncmp(p, opt, len)) ? &p[len] : NULL;
}
static int ip_addr(const char *s, int len, struct in_addr *addr)