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 19:43:43 +02:00
parent 7a35fa24ff
commit 3ca4d0b3eb
+1 -1
View File
@@ -1673,7 +1673,7 @@ static int invoke_main_loop(
return log_emergency_errno(r, "Failed to run main loop: %m");
}
switch (m->objective) {
switch ((ManagerObjective) r) {
case MANAGER_RELOAD: {
LogTarget saved_log_target;