diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-08-18 08:48:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-08-18 08:48:31 +0000 |
commit | b117fef9097a6f1a7795f11bd079c315472fa425 (patch) | |
tree | 9181479f0b6cbe488d117a1005766c7efb113986 /ares_gethostbyaddr.c | |
parent | 5374e1ea7627a033ee15966afe70ac61738ddbdf (diff) | |
download | c-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.c | 4 |
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); |