diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-10 22:20:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-10 22:20:55 +0000 |
commit | b8aaa8bec8414f8e55cf9b61fe0873d242c773b8 (patch) | |
tree | 5e43016c4fae834239fd38972fd58355ed6b54b5 /usr.bin/cap_mkdb/cap_mkdb.c | |
parent | f18f6607440f6d2da08fac3522d88a65c77a5f3e (diff) |
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/cap_mkdb/cap_mkdb.c')
-rw-r--r-- | usr.bin/cap_mkdb/cap_mkdb.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c index 6e3186f169e..5c0005cb98b 100644 --- a/usr.bin/cap_mkdb/cap_mkdb.c +++ b/usr.bin/cap_mkdb/cap_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cap_mkdb.c,v 1.10 2003/06/03 02:56:06 millert Exp $ */ +/* $OpenBSD: cap_mkdb.c,v 1.11 2003/06/10 22:20:45 deraadt Exp $ */ /* $NetBSD: cap_mkdb.c,v 1.5 1995/09/02 05:47:12 jtc Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cap_mkdb.c 8.2 (Berkeley) 4/27/95"; #endif -static char rcsid[] = "$OpenBSD: cap_mkdb.c,v 1.10 2003/06/03 02:56:06 millert Exp $"; +static char rcsid[] = "$OpenBSD: cap_mkdb.c,v 1.11 2003/06/10 22:20:45 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -84,9 +84,7 @@ HASHINFO openinfo = { * the correct record is stored. */ int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int c; @@ -136,7 +134,7 @@ main(argc, argv) } void -dounlink() +dounlink(void) { if (capname != NULL) (void)unlink(capname); @@ -155,8 +153,7 @@ dounlink() * details above. */ void -db_build(ifiles) - char **ifiles; +db_build(char **ifiles) { DBT key, data; recno_t reccnt; @@ -301,7 +298,7 @@ db_build(ifiles) } void -usage() +usage(void) { (void)fprintf(stderr, "usage: cap_mkdb [-iv] [-f outfile] file1 [file2 ...]\n"); |