From: Daniel Stenberg Date: Thu, 26 Feb 2004 22:19:20 +0000 (+0000) Subject: fixed a "comparison between signed and unsigned" warning X-Git-Tag: curl-7_11_1~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ba7ef34d1fc269b142627197c3eea34db3ffa6b;p=thirdparty%2Fcurl.git fixed a "comparison between signed and unsigned" warning --- diff --git a/ares/ares_init.c b/ares/ares_init.c index 519d955247..444fd8a66a 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)