1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03: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:
Lennart Poettering 2018-01-04 12:55:21 +01:00 committed by GitHub
parent 3282774050
commit 3046b6db1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2554,14 +2554,14 @@ int main(int argc, char *argv[]) {
goto finish; goto finish;
} }
r = invoke_main_loop(m, (void) invoke_main_loop(m,
&reexecute, &reexecute,
&retval, &retval,
&shutdown_verb, &shutdown_verb,
&fds, &fds,
&switch_root_dir, &switch_root_dir,
&switch_root_init, &switch_root_init,
&error_message); &error_message);
finish: finish:
pager_close(); pager_close();