From: Lennart Poettering Date: Thu, 4 Jan 2018 11:55:21 +0000 (+0100) Subject: main: don't bother with the return value of invoke_mainloop() (#7802) X-Git-Tag: v237~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3046b6db1d285a7aba2247b48f0cc98372defab6;p=thirdparty%2Fsystemd.git main: don't bother with the return value of invoke_mainloop() (#7802) We don't use the return value, and we don't have to, as the call already initializes &ret, which is the one we return as exit code from the process. CID#1384230 --- diff --git a/src/core/main.c b/src/core/main.c index 3fe4a173fe6..63533dbe101 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -2554,14 +2554,14 @@ int main(int argc, char *argv[]) { goto finish; } - r = invoke_main_loop(m, - &reexecute, - &retval, - &shutdown_verb, - &fds, - &switch_root_dir, - &switch_root_init, - &error_message); + (void) invoke_main_loop(m, + &reexecute, + &retval, + &shutdown_verb, + &fds, + &switch_root_dir, + &switch_root_init, + &error_message); finish: pager_close();