diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-25 21:23:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-25 21:23:54 +0000 |
commit | 47d55297c4e754464e8f458943de1ec99a34b9ec (patch) | |
tree | 9e8158326ae21e7b9e2cb73344c7ce341bc04fcc /sbin | |
parent | af06c70e7a9e986e9740ef589d6856a5b583133e (diff) |
ansi
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dumpfs/dumpfs.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c index b9c73f7f192..dbc0f372a21 100644 --- a/sbin/dumpfs/dumpfs.c +++ b/sbin/dumpfs/dumpfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dumpfs.c,v 1.17 2003/06/02 20:06:14 millert Exp $ */ +/* $OpenBSD: dumpfs.c,v 1.18 2003/06/25 21:23:53 deraadt Exp $ */ /* $NetBSD: dumpfs.c,v 1.12 1997/04/26 05:41:33 lukem Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dumpfs.c 8.2 (Berkeley) 2/2/94"; #else -static char rcsid[] = "$OpenBSD: dumpfs.c,v 1.17 2003/06/02 20:06:14 millert Exp $"; +static char rcsid[] = "$OpenBSD: dumpfs.c,v 1.18 2003/06/25 21:23:53 deraadt Exp $"; #endif #endif /* not lint */ @@ -79,9 +79,7 @@ void pbits(void *, int); void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { struct fstab *fs; int ch, eval; @@ -107,8 +105,7 @@ main(argc, argv) } int -dumpfs(name) - char *name; +dumpfs(char *name) { ssize_t n; int fd, c, i, j, k, size; @@ -258,9 +255,7 @@ err: if (fd != -1) } int -dumpcg(name, fd, c) - char *name; - int fd, c; +dumpcg(char *name, int fd, int c) { off_t cur; int i, j; @@ -325,9 +320,7 @@ dumpcg(name, fd, c) } void -pbits(vp, max) - void *vp; - int max; +pbits(void *vp, int max) { int i; char *p; @@ -349,7 +342,7 @@ pbits(vp, max) } void -usage() +usage(void) { (void)fprintf(stderr, "usage: dumpfs filesys | device\n"); |