diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-26 21:36:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-26 21:36:41 +0000 |
commit | b61c91f7c8732b64fc79e49a3ea1763cc74b982d (patch) | |
tree | 11356c23b7f67afc29f39652db658ec10c8f1038 /usr.sbin/kvm_mkdb/kvm_mkdb.c | |
parent | 26bb9abfb883294bce86a165311e087516d3c89a (diff) |
ansi and protos
Diffstat (limited to 'usr.sbin/kvm_mkdb/kvm_mkdb.c')
-rw-r--r-- | usr.sbin/kvm_mkdb/kvm_mkdb.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/usr.sbin/kvm_mkdb/kvm_mkdb.c b/usr.sbin/kvm_mkdb/kvm_mkdb.c index f549e929b1b..b5aaee3b9fa 100644 --- a/usr.sbin/kvm_mkdb/kvm_mkdb.c +++ b/usr.sbin/kvm_mkdb/kvm_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_mkdb.c,v 1.13 2003/06/02 23:36:53 millert Exp $ */ +/* $OpenBSD: kvm_mkdb.c,v 1.14 2003/06/26 21:36:39 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "from: @(#)kvm_mkdb.c 8.3 (Berkeley) 5/4/95"; #else -static const char rcsid[] = "$OpenBSD: kvm_mkdb.c,v 1.13 2003/06/02 23:36:53 millert Exp $"; +static const char rcsid[] = "$OpenBSD: kvm_mkdb.c,v 1.14 2003/06/26 21:36:39 deraadt Exp $"; #endif #endif /* not lint */ @@ -76,9 +76,7 @@ HASHINFO openinfo = { }; int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { struct rlimit rl; int fd, rval, ch, verbose = 0; @@ -129,11 +127,7 @@ main(argc, argv) } int -kvm_mkdb(fd, nlistpath, nlistname, verbose) - int fd; - char *nlistpath; - char *nlistname; - int verbose; +kvm_mkdb(int fd, char *nlistpath, char *nlistname, int verbose) { DB *db; char dbtemp[MAXPATHLEN], dbname[MAXPATHLEN]; @@ -178,7 +172,7 @@ kvm_mkdb(fd, nlistpath, nlistname, verbose) } void -usage() +usage(void) { (void)fprintf(stderr, "usage: kvm_mkdb [-v] [file]\n"); exit(1); |