chiark / gitweb /
gcc: make a couple of gcc warnings go away
[elogind.git] / service.c
index 28416894676591c940b2475ec862db211068380d..149a791b05f62a8ca76b3a7c732a90f88c8c75ef 100644 (file)
--- a/service.c
+++ b/service.c
@@ -1436,7 +1436,7 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
                  * don't care about failing commands. */
 
                 if (s->control_command->command_next &&
-                    (success || (s->state == SERVICE_EXEC_STOP || s->state == SERVICE_EXEC_STOP_POST)))
+                    (success || (s->state == SERVICE_STOP || s->state == SERVICE_STOP_POST)))
 
                         /* There is another command to *
                          * execute, so let's do that. */