diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-16 19:13:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-16 19:13:04 +0000 |
commit | 2bb013b51f463df9667377661e99e01748521f2c (patch) | |
tree | ea6a2c5173a272e9e1bac24603e5f3e1c4b3f9fb /sbin/scan_ffs/scan_ffs.c | |
parent | bdf34f568dd0d928376a2fad4bf19461b0e35e25 (diff) |
no need for extra param; Mathias@enloco.net
Diffstat (limited to 'sbin/scan_ffs/scan_ffs.c')
-rw-r--r-- | sbin/scan_ffs/scan_ffs.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sbin/scan_ffs/scan_ffs.c b/sbin/scan_ffs/scan_ffs.c index 70ca5245f0f..fea888a3eba 100644 --- a/sbin/scan_ffs/scan_ffs.c +++ b/sbin/scan_ffs/scan_ffs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scan_ffs.c,v 1.10 2003/07/02 21:44:58 deraadt Exp $ */ +/* $OpenBSD: scan_ffs.c,v 1.11 2004/02/16 19:13:03 deraadt Exp $ */ /* * Copyright (c) 1998 Niklas Hallqvist, Tobias Weingartner @@ -44,6 +44,8 @@ #define FLAG_SMART 2 #define FLAG_LABELS 4 +static void usage(void); + static int ufsscan(int fd, daddr_t beg, daddr_t end, int flags) { @@ -113,13 +115,13 @@ ufsscan(int fd, daddr_t beg, daddr_t end, int flags) static void -usage(int code) +usage(void) { extern char *__progname; fprintf(stderr, "usage: %s [-lsv] [-b begin] [-e end] device\n", __progname); - exit(code); + exit(1); } @@ -147,14 +149,14 @@ main(int argc, char *argv[]) flags |= FLAG_LABELS; break; default: - usage(1); + usage(); /* NOTREACHED */ } argc -= optind; argv += optind; if (argc != 1) - usage(1); + usage(); fd = opendev(argv[0], O_RDONLY, OPENDEV_PART, NULL); if (fd < 0) |