summaryrefslogtreecommitdiff
path: root/ares_gethostbyaddr.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-08-18 08:48:31 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-08-18 08:48:31 +0000
commitb117fef9097a6f1a7795f11bd079c315472fa425 (patch)
tree9181479f0b6cbe488d117a1005766c7efb113986 /ares_gethostbyaddr.c
parent5374e1ea7627a033ee15966afe70ac61738ddbdf (diff)
downloadc-ares-b117fef9097a6f1a7795f11bd079c315472fa425.tar.gz
c-ares-b117fef9097a6f1a7795f11bd079c315472fa425.tar.bz2
c-ares-b117fef9097a6f1a7795f11bd079c315472fa425.zip
detabified
Diffstat (limited to 'ares_gethostbyaddr.c')
-rw-r--r--ares_gethostbyaddr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_gethostbyaddr.c b/ares_gethostbyaddr.c
index a415e36..edf0db5 100644
--- a/ares_gethostbyaddr.c
+++ b/ares_gethostbyaddr.c
@@ -68,7 +68,7 @@ void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen,
return;
}
- if ((family == AF_INET && addrlen != sizeof(struct in_addr)) ||
+ if ((family == AF_INET && addrlen != sizeof(struct in_addr)) ||
(family == AF_INET6 && addrlen != sizeof(struct in6_addr)))
{
callback(arg, ARES_ENOTIMP, NULL);
@@ -107,7 +107,7 @@ static void next_lookup(struct addr_query *aquery)
switch (*p)
{
case 'b':
- if (aquery->family == AF_INET)
+ if (aquery->family == AF_INET)
{
addr = ntohl(aquery->addr.addr4.s_addr);
a1 = (int)((addr >> 24) & 0xff);