From 78c0693c50447f8211d8e645363afa62cef8b2e4 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 25 Jan 2023 04:02:17 +0000 Subject: openrc-shutdown: mark stop_shutdown as noreturn, fix typo/indentation For -Wmissing-noreturn. --- src/openrc-shutdown/openrc-shutdown.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrc-shutdown/openrc-shutdown.c b/src/openrc-shutdown/openrc-shutdown.c index dddc749b..a2fae5f5 100644 --- a/src/openrc-shutdown/openrc-shutdown.c +++ b/src/openrc-shutdown/openrc-shutdown.c @@ -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) -- cgit v1.2.3