aboutsummaryrefslogtreecommitdiff
path: root/sbin/i386
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1996-08-07 00:39:41 +0000
committerJulian Elischer <julian@FreeBSD.org>1996-08-07 00:39:41 +0000
commited7e548bf30db3d7b14cdbf6395aa8ed314e1bf6 (patch)
treefe67be6e8a0173cee6af9604f8a75743b5b273c3 /sbin/i386
parent16bcbad689fefd612b511cb6200cfffd63780fbf (diff)
Notes
Diffstat (limited to 'sbin/i386')
-rw-r--r--sbin/i386/nextboot/nextboot.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sbin/i386/nextboot/nextboot.c b/sbin/i386/nextboot/nextboot.c
index 47d467704e08..2398b56f0f1b 100644
--- a/sbin/i386/nextboot/nextboot.c
+++ b/sbin/i386/nextboot/nextboot.c
@@ -45,15 +45,15 @@ static int eflag;
static int dflag;
static int nameblock = NAMEBLOCK;
-char * myname;
#define BOOT_MAGIC 0xAA55
+extern char *__progname;
+
static void usage(void) {
- printf (" usage: %s [-b] device bootstring [bootstring] ...\n"
- ,myname);
- printf (" or: %s {-e,-d} device \n"
- ,myname);
- printf (" flags are mutually exclusive\n");
+ fprintf (stderr, " usage: %s [-b] device bootstring [bootstring] ...\n"
+ , __progname);
+ fprintf (stderr, " or: %s {-e,-d} device \n" , __progname);
+ fprintf (stderr, "The -e and -d flags are mutually exclusive\n");
exit(1);
}
@@ -66,7 +66,6 @@ main (int argc, char** argv)
int part;
bflag = 0;
- myname = argv[0];
while ((ch = getopt(argc, argv, "bde")) != EOF) {
switch(ch) {
case 'b':