]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
main: don't bother with the return value of invoke_mainloop() (#7802)
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 11:55:21 +0000 (12:55 +0100)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2018 11:55:21 +0000 (12:55 +0100)
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

src/core/main.c

index 3fe4a173fe6d4ba20ef9f43ffd18595583107825..63533dbe101b2c4b7ff4d0e31e3986cf06e7f836 100644 (file)
@@ -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();