Commit: 8dc35a9249df2fb0be0b566d2e1fe6efdd5c389c
Parent: 8f11dae2bee348381072fd62b5447703c9780633
Author: Randy Palamar
Date: Thu, 26 Aug 2021 17:13:05 -0600
dns.c: remove useless do_queued_lookup()
Diffstat:
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/dns.c b/dns.c
@@ -264,18 +264,13 @@ ret:
return;
}
-static int do_lookup(struct dnsquery *q, int force_async)
+static int do_lookup(struct dnsquery *q)
{
do_real_lookup((unsigned char *)q->name, q->addr_preference, q->addr);
end_dns_lookup(q, !q->addr->n);
return 0;
}
-static int do_queued_lookup(struct dnsquery *q)
-{
- return do_lookup(q, 0);
-}
-
static void check_dns_cache_addr_preference(void)
{
if (dns_cache_addr_preference != ipv6_options.addr_preference) {
@@ -353,7 +348,7 @@ int find_host_no_cache(unsigned char *name, struct lookup_result *addr, void **q
strcpy(q->name, (char *)name);
if (qp)
*qp = q;
- return do_queued_lookup(q);
+ return do_lookup(q);
}
int find_host(unsigned char *name, struct lookup_result *addr, void **qp, void (*fn)(void *, int), void *data)