From: Lennart Poettering Date: Wed, 21 Feb 2018 16:46:55 +0000 (+0100) Subject: tree-wide: voidify reboot() invocations X-Git-Tag: v238~71^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=118cf9523b94a6be0d45b2fa59ef37f2e89454da;p=thirdparty%2Fsystemd.git tree-wide: voidify reboot() invocations We use (void) in most cases for reboot() already, let's add it to the others as well. --- diff --git a/src/core/emergency-action.c b/src/core/emergency-action.c index 095033732b1..be3ca8f20d1 100644 --- a/src/core/emergency-action.c +++ b/src/core/emergency-action.c @@ -93,7 +93,7 @@ int emergency_action( } log_info("Rebooting."); - reboot(RB_AUTOBOOT); + (void) reboot(RB_AUTOBOOT); break; case EMERGENCY_ACTION_POWEROFF: @@ -112,7 +112,7 @@ int emergency_action( sync(); log_info("Powering off."); - reboot(RB_POWER_OFF); + (void) reboot(RB_POWER_OFF); break; default: diff --git a/src/core/shutdown.c b/src/core/shutdown.c index 8907c4b0a36..33751c5ff55 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -548,7 +548,7 @@ int main(int argc, char *argv[]) { assert_not_reached("Unknown magic"); } - reboot(cmd); + (void) reboot(cmd); if (errno == EPERM && in_container) { /* If we are in a container, and we lacked * CAP_SYS_BOOT just exit, this will kill our