summaryrefslogtreecommitdiff
path: root/ares_getnameinfo.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-01 01:42:13 +0000
committerYang Tse <yangsita@gmail.com>2007-02-01 01:42:13 +0000
commitfb38ee15e249e187ffcbb91df82684a61783945c (patch)
treee2fb7c8f7cdb6efbd69bac999aaea5f0af08ecc0 /ares_getnameinfo.c
parent4a30753b47510fd84a2189cf02ea0a53ea7f1f2d (diff)
downloadc-ares-fb38ee15e249e187ffcbb91df82684a61783945c.tar.gz
c-ares-fb38ee15e249e187ffcbb91df82684a61783945c.tar.bz2
c-ares-fb38ee15e249e187ffcbb91df82684a61783945c.zip
compiler warning fix
Diffstat (limited to 'ares_getnameinfo.c')
-rw-r--r--ares_getnameinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ares_getnameinfo.c b/ares_getnameinfo.c
index 71cf41d..51e36fb 100644
--- a/ares_getnameinfo.c
+++ b/ares_getnameinfo.c
@@ -357,6 +357,7 @@ static void append_scopeid(struct sockaddr_in6 *addr6, unsigned int flags,
static char *ares_striendstr(const char *s1, const char *s2)
{
const char *c1, *c2, *c1_begin;
+ int lo1, lo2;
size_t s1_len = strlen(s1), s2_len = strlen(s2);
/* If the substr is longer than the full str, it can't match */
@@ -369,7 +370,9 @@ static char *ares_striendstr(const char *s1, const char *s2)
c2 = s2;
while (c2 < s2+s2_len)
{
- if (tolower(*c1) != tolower(*c2))
+ lo1 = tolower(*c1);
+ lo2 = tolower(*c2);
+ if (lo1 != lo2)
return NULL;
else
{