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

For -Wmissing-noreturn.
This commit is contained in:
Sam James authored and Mike Frysinger committed 2023-01-25 00:50:15 -05:00
1 parent ddf4a3a7a0
commit 78c0693c50
1 file changed
+3 -3
+3 -3
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)