mirror of
https://github.com/systemd/systemd
synced 2024-10-07 08:40:44 +00:00
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:
parent
3282774050
commit
3046b6db1d
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue