summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-29 23:17:00 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-29 23:17:00 +0000
commitfeb3c24a40a8227ab1253ddbe9bac43f5aba7d9a (patch)
tree78abaffd14784ce69ef4ef3981ce3b7337303867
parent8dcd792c1d60123e9f13f15d526f17fb66e25803 (diff)
better usage()
-rw-r--r--sbin/fdisk/fdisk.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index 93416d293e9..251311a97b1 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: fdisk.c,v 1.21 1997/09/29 22:58:16 weingart Exp $ */
+/* $OpenBSD: fdisk.c,v 1.22 1997/09/29 23:16:59 mickey Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -48,12 +48,15 @@
void
usage()
{
- fprintf(stderr, "usage: fdisk [-ie] [-f mbrboot] [-c cyl] [-h head] [-s sect] disk\n");
- fprintf(stderr, "\t-i: initialize disk with virgin MBR\n");
- fprintf(stderr, "\t-e: edit MBRs on disk interactively\n");
- fprintf(stderr, "\t-f: specify non-standard MBR template\n");
- fprintf(stderr, "\t-chs: specify disk geometry\n");
- fprintf(stderr, "`disk' may be of the forms: sd0 or /dev/rsd0c.\n");
+ extern char * __progname;
+ fprintf(stderr, "usage: %s "
+ "[-ie] [-f mbrboot] [-c cyl] [-h head] [-s sect] disk\n"
+ "\t-i: initialize disk with virgin MBR\n"
+ "\t-e: edit MBRs on disk interactively\n"
+ "\t-f: specify non-standard MBR template\n"
+ "\t-chs: specify disk geometry\n"
+ "`disk' may be of the forms: sd0 or /dev/rsd0c.\n",
+ __progname);
exit(1);
}