More rational usage()

This commit is contained in:
Dag-Erling Smørgrav 2009-11-10 09:44:55 +00:00
parent 1789887000
commit c574558f28

View File

@ -216,10 +216,12 @@ main(int argc, char *argv[])
}
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);
}