1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

core: make use of manager_loop()'s return value

The objective is returned in the return value, let's make use of that,
instead of reaching into the object.
This commit is contained in:
Lennart Poettering 2018-10-09 17:57:41 +02:00
parent 7a35fa24ff
commit 3ca4d0b3eb

View File

@ -1673,7 +1673,7 @@ static int invoke_main_loop(
return log_emergency_errno(r, "Failed to run main loop: %m"); return log_emergency_errno(r, "Failed to run main loop: %m");
} }
switch (m->objective) { switch ((ManagerObjective) r) {
case MANAGER_RELOAD: { case MANAGER_RELOAD: {
LogTarget saved_log_target; LogTarget saved_log_target;