diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index 3a4d20cb4586..cae709f3b065 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); }