ref: b5362dc72220a4ac80678cc00e4289befae337e3
parent: 549a6745e3b6a69c9a14deb5090b8fa1ad444f06
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 28 17:46:48 EST 2018
ndb/dns: cleanup
--- a/sys/src/cmd/ndb/dblookup.c
+++ b/sys/src/cmd/ndb/dblookup.c
@@ -839,7 +839,7 @@
}
static void
-addlocaldnsserver(DN *dp, int class, char *ipaddr, int i)
+addlocaldnsserver(DN *dp, int class, char *addr, int i)
{
uchar ip[IPaddrlen];
DN *nsdp, *ipdp;
@@ -847,8 +847,8 @@
int type, n;
char buf[32];
- if(parseip(ip, ipaddr) == -1 || ipcmp(ip, IPnoaddr) == 0){
- dnslog("rejecting bad ip %s as local dns server", ipaddr);
+ if(parseip(ip, addr) == -1 || ipcmp(ip, IPnoaddr) == 0){
+ dnslog("rejecting bad ip %s as local dns server", addr);
return;
}
--- a/sys/src/cmd/ndb/dns.h
+++ b/sys/src/cmd/ndb/dns.h
@@ -494,7 +494,6 @@
/* dblookup.c */
int baddelegation(RR*, RR*, uchar*);
-RR* dbinaddr(DN*, int);
RR* dblookup(char*, int, int, int, int);
RR* dnsservers(int);
RR* domainlist(int);