diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-19 17:49:33 +0000 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-19 17:49:33 +0000 |
commit | 633645d9f0bebf8f5d813e34d0e9684977253a7c (patch) | |
tree | 5d8ef9469cb6faba8a618877b23b90676e5d9b5a /usr.bin/reboot | |
parent | 0d0435966d88c7c2918d07d01a70db85ba4bc1a6 (diff) |
usr: reboot: Add default case for bad flags
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/reboot')
-rw-r--r-- | usr.bin/reboot/reboot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/reboot/reboot.c b/usr.bin/reboot/reboot.c index 0fed0d2..7fa37f9 100644 --- a/usr.bin/reboot/reboot.c +++ b/usr.bin/reboot/reboot.c @@ -71,6 +71,9 @@ main(int argc, char **argv) cpu_reboot(REBOOT_FLAG_HLT); printf("HALT failed\n"); /* Fall through */ + default: + printf("got bad flag '%c'\n", c); + break; } } |