From 4ba7ef34d1fc269b142627197c3eea34db3ffa6b Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Thu, 26 Feb 2004 22:19:20 +0000
Subject: [PATCH] fixed a "comparison between signed and unsigned" warning

---
 ares/ares_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)