openrc-shutdown: mark stop_shutdown as noreturn, fix typo/indentation

For -Wmissing-noreturn.
This commit is contained in:
Sam James 2023-01-25 04:02:17 +00:00 committed by Mike Frysinger
parent ddf4a3a7a0
commit 78c0693c50

View File

@ -167,12 +167,12 @@ static void sleep_no_interrupt(int seconds)
duration = remaining; duration = remaining;
} }
static void stop_shutdown(int sig) _noreturn static void stop_shutdown(int sig)
{ {
(void) sig; (void) sig;
unlink(nologin_file); unlink(nologin_file);
unlink(shutdown_pid); unlink(shutdown_pid);
einfo("Shutdown canceled"); einfo("Shutdown cancelled");
exit(0); exit(0);
} }