diff options
author | des <des@FreeBSD.org> | 2009-11-10 09:44:55 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2009-11-10 09:44:55 +0000 |
commit | 9f026514d53caf6d0544f7ef8fce16dab8884294 (patch) | |
tree | 57d17251f8d16f7546d93aea5dc3b48761d3852f /sbin/reboot | |
parent | 700ad531607111066c97cf7f1a7962f53f9ef596 (diff) | |
download | FreeBSD-src-9f026514d53caf6d0544f7ef8fce16dab8884294.zip FreeBSD-src-9f026514d53caf6d0544f7ef8fce16dab8884294.tar.gz |
More rational usage()
Diffstat (limited to 'sbin/reboot')
-rw-r--r-- | sbin/reboot/reboot.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 3a4d20c..cae709f 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -216,10 +216,12 @@ restart: } static void -usage() +usage(void) { - (void)fprintf(stderr, "usage: %s [-%slnpq] [-k kernel]\n", - getprogname(), dohalt ? "" : "d"); + + (void)fprintf(stderr, dohalt ? + "usage: halt [-lnpq] [-k kernel]\n" : + "usage: reboot [-dlnpq] [-k kernel]\n"); exit(1); } |