Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
parent
226d80b821
commit
cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue