From 3ca4d0b3eb5982b673acb9607c88d0961dd418fe Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 9 Oct 2018 17:57:41 +0200 Subject: [PATCH] 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. --- src/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index 9bc5b3c6dc..44e8a38f61 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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;