aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ndb/dblookup.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/ndb/dblookup.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
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>
Diffstat (limited to 'src/cmd/ndb/dblookup.c')
-rw-r--r--[-rwxr-xr-x]src/cmd/ndb/dblookup.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/ndb/dblookup.c b/src/cmd/ndb/dblookup.c
index ca73184a..067ba444 100755..100644
--- a/src/cmd/ndb/dblookup.c
+++ b/src/cmd/ndb/dblookup.c
@@ -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);