summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-02-05 00:26:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-02-05 00:26:25 +0000
commitfc14c339d4f8f9e01738737be79b3110d9d320c4 (patch)
tree873b7c37c9916afd8f3034b4360411e68c2e3463 /sbin
parent02683d2438a7137e9b0fb0669a9b74a292c84f3a (diff)
Add usage line
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck_ffs/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c
index 6a72300475a..7360a814d8b 100644
--- a/sbin/fsck_ffs/main.c
+++ b/sbin/fsck_ffs/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.12 1997/10/06 20:22:33 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.13 1998/02/05 00:26:24 millert Exp $ */
/* $NetBSD: main.c,v 1.22 1996/10/11 20:15:48 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/23/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.12 1997/10/06 20:22:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.13 1998/02/05 00:26:24 millert Exp $";
#endif
#endif /* not lint */
@@ -70,6 +70,8 @@ int checkfilesys __P((char *, char *, long, int));
int docheck __P((struct fstab *));
int main __P((int, char *[]));
+extern char *__progname;
+
int
main(argc, argv)
int argc;
@@ -127,7 +129,7 @@ main(argc, argv)
break;
default:
- errexit("%c option?\n", ch);
+ errexit("usage: %s -p [-f] [-m mode]\n %s [-f] [-b block#] [-c level] [-y] [-n] [-m mode] [filesystem] ...", __progname, __progname);
}
}
argc -= optind;