aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ndb
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/ndb
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/ndb')
-rwxr-xr-xsrc/cmd/ndb/dn.c2
-rw-r--r--src/cmd/ndb/ndbmkhosts.c22
2 files changed, 11 insertions, 13 deletions
diff --git a/src/cmd/ndb/dn.c b/src/cmd/ndb/dn.c
index 8052d582..c9356b54 100755
--- a/src/cmd/ndb/dn.c
+++ b/src/cmd/ndb/dn.c
@@ -112,7 +112,7 @@ char *rname[Rmask+1] =
"server failure",
"bad name",
"unimplemented",
- "we don't like you",
+ "we don't like you"
};
Lock dnlock;
diff --git a/src/cmd/ndb/ndbmkhosts.c b/src/cmd/ndb/ndbmkhosts.c
index 2fc3d7f7..fcdffcf9 100644
--- a/src/cmd/ndb/ndbmkhosts.c
+++ b/src/cmd/ndb/ndbmkhosts.c
@@ -187,18 +187,16 @@ main(int argc, char *argv[])
parse(unsharp("#9/ndb/friends"));
}
-/*
-// sprint(fn, "/lib/ndb/hosts.%-.21s", domname);
-// fd = create(fn, OWRITE, 0664);
-// if(fd < 0){
-// fprint(2, "can't create %s: %r\n", fn);
-// exits("boom");
-// }
-// for(i = 0; i < nx; i++)
-// printentry(fd, &x[i]);
-// close(fd);
-//
-*/
+/* sprint(fn, "/lib/ndb/hosts.%-.21s", domname); */
+/* fd = create(fn, OWRITE, 0664); */
+/* if(fd < 0){ */
+/* fprint(2, "can't create %s: %r\n", fn); */
+/* exits("boom"); */
+/* } */
+/* for(i = 0; i < nx; i++) */
+/* printentry(fd, &x[i]); */
+/* close(fd); */
+
sprint(fn, "/lib/ndb/db.%-.24s", domname);
fd = create(fn, OWRITE, 0664);