aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ndb/ndbmkhosts.c
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/ndbmkhosts.c
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/ndbmkhosts.c')
-rw-r--r--src/cmd/ndb/ndbmkhosts.c22
1 files changed, 10 insertions, 12 deletions
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);