summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-02-13 14:37:16 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-02-13 14:58:04 +0100
commit2a3a63ae1f0894fd33db0c30c75fb2f771d8e7fc (patch)
tree453492a5ef87079694e5b41617f753022beaa042 /ares_gethostbyname.c
parent9c03cc118c748f6ed2ffbda83ee7ba37cc34738d (diff)
downloadc-ares-2a3a63ae1f0894fd33db0c30c75fb2f771d8e7fc.tar.gz
c-ares-2a3a63ae1f0894fd33db0c30c75fb2f771d8e7fc.tar.bz2
c-ares-2a3a63ae1f0894fd33db0c30c75fb2f771d8e7fc.zip
ares__bitncmp: use two underscores for private functions
It used a single one previously making it look like a public one
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index 428b1ee..14cf7ef 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -460,8 +460,8 @@ static int get_address_index(const struct in_addr *addr,
}
else
{
- if (!ares_bitncmp(&addr->s_addr, &sortlist[i].addrV4.s_addr,
- sortlist[i].mask.bits))
+ if (!ares__bitncmp(&addr->s_addr, &sortlist[i].addrV4.s_addr,
+ sortlist[i].mask.bits))
break;
}
}
@@ -508,10 +508,8 @@ static int get6_address_index(const struct ares_in6_addr *addr,
{
if (sortlist[i].family != AF_INET6)
continue;
- if (!ares_bitncmp(addr,
- &sortlist[i].addrV6,
- sortlist[i].mask.bits))
- break;
+ if (!ares__bitncmp(addr, &sortlist[i].addrV6, sortlist[i].mask.bits))
+ break;
}
return i;
}