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
This commit is contained in:
Lennart Poettering
2018-01-04 12:55:21 +01:00
committed by GitHub
parent 3282774050
commit 3046b6db1d
+8 -8
View 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();