summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-08-18 08:48:31 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2005-08-18 08:48:31 (GMT)
commitb117fef9097a6f1a7795f11bd079c315472fa425 (patch)
tree9181479f0b6cbe488d117a1005766c7efb113986 /ares_gethostbyname.c
parent5374e1ea7627a033ee15966afe70ac61738ddbdf (diff)
downloadc-ares-b117fef9097a6f1a7795f11bd079c315472fa425.zip
c-ares-b117fef9097a6f1a7795f11bd079c315472fa425.tar.gz
c-ares-b117fef9097a6f1a7795f11bd079c315472fa425.tar.bz2
detabified
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index b5867fd..bdc9029 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -124,10 +124,10 @@ static void next_lookup(struct host_query *hquery)
case 'b':
/* DNS lookup */
hquery->remaining_lookups = p + 1;
- if (hquery->family == AF_INET6)
- ares_search(hquery->channel, hquery->name, C_IN, T_AAAA, host_callback,
- hquery);
- else
+ if (hquery->family == AF_INET6)
+ ares_search(hquery->channel, hquery->name, C_IN, T_AAAA, host_callback,
+ hquery);
+ else
ares_search(hquery->channel, hquery->name, C_IN, T_A, host_callback,
hquery);
return;
@@ -174,7 +174,7 @@ static void host_callback(void *arg, int status, unsigned char *abuf, int alen)
hquery->family = AF_INET;
ares_search(hquery->channel, hquery->name, C_IN, T_A, host_callback,
hquery);
- }
+ }
else if (status == ARES_EDESTRUCTION)
end_hquery(hquery, status, NULL);
else
@@ -342,13 +342,13 @@ static int get_address_index(struct in_addr *addr, struct apattern *sortlist,
continue;
if (sortlist[i].type == PATTERN_MASK)
{
- if ((addr->s_addr & sortlist[i].mask.addr.addr4.s_addr)
+ if ((addr->s_addr & sortlist[i].mask.addr.addr4.s_addr)
== sortlist[i].addr.addr4.s_addr)
break;
}
else
{
- if (!ares_bitncmp(&addr->s_addr, &sortlist[i].addr.addr4.s_addr,
+ if (!ares_bitncmp(&addr->s_addr, &sortlist[i].addr.addr4.s_addr,
sortlist[i].mask.bits))
break;
}