summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-08-22 07:44:04 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-08-22 07:44:04 +0000
commit1f67073b7df408627e13f1256030ac64be67f76a (patch)
tree04d6af173d1dfb6fc21e2530e38500cab65c29b5
parente5ff38e8f671bc0ef417730bf0630d359c7cd338 (diff)
fix usage
-rw-r--r--sbin/dump/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index b1dd9c5b7c9..5ddd007a07b 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.23 1998/08/11 20:26:59 millert Exp $ */
+/* $OpenBSD: main.c,v 1.24 1998/08/22 07:44:03 mickey Exp $ */
/* $NetBSD: main.c,v 1.14 1997/06/05 11:13:24 lukem Exp $ */
/*-
@@ -557,9 +557,12 @@ main(argc, argv)
static void
usage()
{
+ extern char *__progname;
- (void)fprintf(stderr, "usage: dump [-0123456789cnu] [-B records] [-b blocksize] [-d density] [-f file]\n [-h level] [-s feet] [-T date] filesystem\n");
- (void)fprintf(stderr, " dump [-W | -w]\n");
+ (void)fprintf(stderr, "usage: %s [-0123456789acnu] [-B records]"
+ "[-b blocksize] [-d density] [-f file]\n"
+ " [-h level] [-s feet] [-T date] filesystem\n"
+ " %s [-W | -w]\n", __progname, __progname);
exit(X_STARTUP);
}