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,13 +167,13 @@ static void sleep_no_interrupt(int seconds)
duration = remaining;
}
static void stop_shutdown(int sig)
_noreturn static void stop_shutdown(int sig)
{
(void) sig;
unlink(nologin_file);
unlink(shutdown_pid);
einfo("Shutdown canceled");
exit(0);
einfo("Shutdown cancelled");
exit(0);
}
int main(int argc, char **argv)