openrc-shutdown: mark stop_shutdown as noreturn, fix typo/indentation
For -Wmissing-noreturn.
This commit is contained in:
parent
ddf4a3a7a0
commit
78c0693c50
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user