Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
parent
77a0a5b519
commit
fa325e9b42
1021 changed files with 5688 additions and 6193 deletions
0
src/cmd/ndb/convDNS2M.c
Executable file → Normal file
0
src/cmd/ndb/convDNS2M.c
Executable file → Normal file
0
src/cmd/ndb/convM2DNS.c
Executable file → Normal file
0
src/cmd/ndb/convM2DNS.c
Executable file → Normal file
16
src/cmd/ndb/dblookup.c
Executable file → Normal file
16
src/cmd/ndb/dblookup.c
Executable file → Normal file
|
|
@ -463,13 +463,13 @@ soarr(Ndbtuple *entry, Ndbtuple *pair)
|
|||
rp->rmb = dnlookup(mailbox, Cin, 1);
|
||||
}
|
||||
|
||||
/* hang dns slaves off of the soa. this is
|
||||
/* hang dns slaves off of the soa. this is
|
||||
* for managing the area.
|
||||
*/
|
||||
for(t = entry; t != nil; t = t->entry)
|
||||
if(strcmp(t->attr, "dnsslave") == 0)
|
||||
addserver(&rp->soa->slaves, t->val);
|
||||
|
||||
|
||||
return rp;
|
||||
}
|
||||
|
||||
|
|
@ -647,11 +647,11 @@ db2cache(int doit)
|
|||
unlock(&dblock);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* forget our area definition */
|
||||
freearea(&owned);
|
||||
freearea(&delegated);
|
||||
|
||||
|
||||
/* reopen all the files (to get oldest for time stamp) */
|
||||
for(ndb = db; ndb; ndb = ndb->next)
|
||||
ndbreopen(ndb);
|
||||
|
|
@ -659,14 +659,14 @@ db2cache(int doit)
|
|||
if(cachedb){
|
||||
/* mark all db records as timed out */
|
||||
dnagedb();
|
||||
|
||||
|
||||
/* read in new entries */
|
||||
for(ndb = db; ndb; ndb = ndb->next)
|
||||
dbfile2cache(ndb);
|
||||
|
||||
|
||||
/* mark as authentic anything in our domain */
|
||||
dnauthdb();
|
||||
|
||||
|
||||
/* remove old entries */
|
||||
dnageall(1);
|
||||
} else {
|
||||
|
|
@ -697,7 +697,7 @@ lookupinfo(char *attr)
|
|||
|
||||
snprint(buf, sizeof buf, "%I", ipaddr);
|
||||
a[0] = attr;
|
||||
|
||||
|
||||
lock(&dblock);
|
||||
if(opendatabase() < 0){
|
||||
unlock(&dblock);
|
||||
|
|
|
|||
8
src/cmd/ndb/dn.c
Executable file → Normal file
8
src/cmd/ndb/dn.c
Executable file → Normal file
|
|
@ -67,7 +67,7 @@ char *rrtname[Tall+2] =
|
|||
"cert",
|
||||
nil,
|
||||
nil,
|
||||
|
||||
|
||||
/* 40 */ nil, nil, nil, nil, nil, nil, nil, nil,
|
||||
/* 48 */ nil, nil, nil, nil, nil, nil, nil, nil,
|
||||
/* 56 */ nil, nil, nil, nil, nil, nil, nil, nil,
|
||||
|
|
@ -94,7 +94,7 @@ char *rrtname[Tall+2] =
|
|||
/* 224 */ nil, nil, nil, nil, nil, nil, nil, nil,
|
||||
/* 232 */ nil, nil, nil, nil, nil, nil, nil, nil,
|
||||
/* 240 */ nil, nil, nil, nil, nil, nil, nil, nil,
|
||||
/* 248 */ nil, nil, nil,
|
||||
/* 248 */ nil, nil, nil,
|
||||
|
||||
"ixfr",
|
||||
"axfr",
|
||||
|
|
@ -1318,7 +1318,7 @@ randomize(RR *rp)
|
|||
if(x->type != Ta && x->type != Tmx && x->type != Tns)
|
||||
return rp;
|
||||
|
||||
base = rp;
|
||||
base = rp;
|
||||
|
||||
n = rand();
|
||||
last = first = nil;
|
||||
|
|
@ -1564,7 +1564,7 @@ copyserverlist(Server *s)
|
|||
{
|
||||
Server *ns;
|
||||
|
||||
|
||||
|
||||
for(ns = nil; s != nil; s = s->next)
|
||||
addserver(&ns, s->name);
|
||||
return ns;
|
||||
|
|
|
|||
3
src/cmd/ndb/dnarea.c
Executable file → Normal file
3
src/cmd/ndb/dnarea.c
Executable file → Normal file
|
|
@ -96,7 +96,7 @@ refresh_areas(Area *s)
|
|||
{
|
||||
Waitmsg *w;
|
||||
char *argv[3];
|
||||
|
||||
|
||||
argv[0] = zonerefreshprogram;
|
||||
argv[1] = "XXX";
|
||||
argv[2] = nil;
|
||||
|
|
@ -115,4 +115,3 @@ refresh_areas(Area *s)
|
|||
free(w);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
0
src/cmd/ndb/dnnotify.c
Executable file → Normal file
0
src/cmd/ndb/dnnotify.c
Executable file → Normal file
18
src/cmd/ndb/dnresolve.c
Executable file → Normal file
18
src/cmd/ndb/dnresolve.c
Executable file → Normal file
|
|
@ -71,13 +71,13 @@ dnresolve(char *name, int class, int type, Request *req, RR **cn, int depth, int
|
|||
rp = nil;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
name = rp->host->name;
|
||||
if(cn)
|
||||
rrcat(cn, rp);
|
||||
else
|
||||
rrfreelist(rp);
|
||||
|
||||
|
||||
rp = dnresolve1(name, class, type, req, depth, recurse);
|
||||
}
|
||||
}
|
||||
|
|
@ -126,7 +126,7 @@ dnresolve1(char *name, int class, int type, Request *req, int depth, int recurse
|
|||
rrfreelist(rp);
|
||||
|
||||
/*
|
||||
* try the cache for a canonical name. if found punt
|
||||
* try the cache for a canonical name. if found punt
|
||||
* since we'll find it during the canonical name search
|
||||
* in dnresolve().
|
||||
*/
|
||||
|
|
@ -242,7 +242,7 @@ walkup(char *name)
|
|||
}
|
||||
|
||||
/*
|
||||
* Get a udpport for requests and replies.
|
||||
* Get a udpport for requests and replies.
|
||||
*/
|
||||
int
|
||||
udpport(void)
|
||||
|
|
@ -310,7 +310,7 @@ readreply(int fd, DN *dp, int type, ushort req,
|
|||
len = udpreadtimeout(fd, (Udphdr*)ibuf, ibuf+Udphdrsize, Maxudpin, (endtime-now)*1000);
|
||||
if(len < 0)
|
||||
return -1; /* timed out */
|
||||
|
||||
|
||||
/* convert into internal format */
|
||||
memset(mp, 0, sizeof(*mp));
|
||||
err = convM2DNS(&ibuf[Udphdrsize], len, mp);
|
||||
|
|
@ -357,13 +357,13 @@ udpreadtimeout(int fd, Udphdr *h, void *data, int n, int ms)
|
|||
{
|
||||
fd_set rd;
|
||||
struct timeval tv;
|
||||
|
||||
|
||||
FD_ZERO(&rd);
|
||||
FD_SET(fd, &rd);
|
||||
|
||||
|
||||
tv.tv_sec = ms/1000;
|
||||
tv.tv_usec = (ms%1000)*1000;
|
||||
|
||||
|
||||
if(select(fd+1, &rd, 0, 0, &tv) != 1)
|
||||
return -1;
|
||||
return udpread(fd, h, data, n);
|
||||
|
|
@ -512,7 +512,7 @@ cacheneg(DN *dp, int type, int rcode, RR *soarr)
|
|||
soarr->next = nil;
|
||||
}
|
||||
soaowner = soarr->owner;
|
||||
} else
|
||||
} else
|
||||
soaowner = nil;
|
||||
|
||||
/* the attach can cause soarr to be freed so mine it now */
|
||||
|
|
|
|||
2
src/cmd/ndb/dns.c
Executable file → Normal file
2
src/cmd/ndb/dns.c
Executable file → Normal file
|
|
@ -170,7 +170,7 @@ threadmain(int argc, char *argv[])
|
|||
default:
|
||||
usage();
|
||||
}ARGEND
|
||||
|
||||
|
||||
if(argc)
|
||||
usage();
|
||||
if(serveudp && servetcp)
|
||||
|
|
|
|||
2
src/cmd/ndb/dns.h
Executable file → Normal file
2
src/cmd/ndb/dns.h
Executable file → Normal file
|
|
@ -26,7 +26,7 @@ enum
|
|||
/* query types (all RR types are also queries) */
|
||||
Tixfr= 251, /* incremental zone transfer */
|
||||
Taxfr= 252, /* zone transfer */
|
||||
Tmailb= 253, /* { Tmb, Tmg, Tmr } */
|
||||
Tmailb= 253, /* { Tmb, Tmg, Tmr } */
|
||||
Tall= 255, /* all records */
|
||||
|
||||
/* classes */
|
||||
|
|
|
|||
2
src/cmd/ndb/dnsdebug.c
Executable file → Normal file
2
src/cmd/ndb/dnsdebug.c
Executable file → Normal file
|
|
@ -331,7 +331,7 @@ void
|
|||
preloadserveraddrs(void)
|
||||
{
|
||||
RR *rp, **l, *first;
|
||||
|
||||
|
||||
l = &first;
|
||||
for(rp = serveraddrs; rp != nil; rp = rp->next){
|
||||
rrcopy(rp, l);
|
||||
|
|
|
|||
4
src/cmd/ndb/dnserver.c
Executable file → Normal file
4
src/cmd/ndb/dnserver.c
Executable file → Normal file
|
|
@ -81,7 +81,7 @@ dnserver(DNSmsg *reqp, DNSmsg *repp, Request *req)
|
|||
nsdp = dnlookup(cp, repp->qd->owner->class, 0);
|
||||
if(nsdp == 0)
|
||||
continue;
|
||||
|
||||
|
||||
repp->ns = rrlookup(nsdp, Tns, OKneg);
|
||||
if(repp->ns){
|
||||
/* don't pass on anything we know is wrong */
|
||||
|
|
@ -91,7 +91,7 @@ dnserver(DNSmsg *reqp, DNSmsg *repp, Request *req)
|
|||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
repp->ns = dblookup(cp, repp->qd->owner->class, Tns, 0, 0);
|
||||
if(repp->ns)
|
||||
break;
|
||||
|
|
|
|||
0
src/cmd/ndb/dnsquery.c
Executable file → Normal file
0
src/cmd/ndb/dnsquery.c
Executable file → Normal file
0
src/cmd/ndb/dnstcp.c
Executable file → Normal file
0
src/cmd/ndb/dnstcp.c
Executable file → Normal file
|
|
@ -269,7 +269,7 @@ static int
|
|||
tcpannounce(char *mntpt)
|
||||
{
|
||||
int fd;
|
||||
|
||||
|
||||
USED(mntpt);
|
||||
if((fd=announce(tcpaddr, adir)) < 0)
|
||||
warning("announce %s: %r", tcpaddr);
|
||||
|
|
|
|||
1
src/cmd/ndb/dnudpserver.c
Executable file → Normal file
1
src/cmd/ndb/dnudpserver.c
Executable file → Normal file
|
|
@ -206,4 +206,3 @@ dnudpserver(void *v)
|
|||
for(i=0; i<Maxactive; i++)
|
||||
proccreate(udpproc, (void*)(uintptr)fd, STACK);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ main(int argc, char **argv)
|
|||
{
|
||||
Ndbtuple *t, *nt;
|
||||
int n;
|
||||
Dir *d;
|
||||
Dir *d;
|
||||
uchar buf[8];
|
||||
char file[128];
|
||||
int fd;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ main(int argc, char **argv)
|
|||
default:
|
||||
usage();
|
||||
}
|
||||
|
||||
|
||||
db = ndbopen(dbfile);
|
||||
if(db == 0){
|
||||
fprint(2, "no db files\n");
|
||||
|
|
|
|||
|
|
@ -34,4 +34,3 @@ runproc(char *file, char **v, int devnull)
|
|||
}
|
||||
return runprocfd(file, v, fd);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue