More rational usage()
This commit is contained in:
parent
700ad53160
commit
9f026514d5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user