summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-10-20 19:20:22 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-20 14:22:43 -0400
commitdfc7f59430fb5adb280c0ef42df3c8cd23fefc13 (patch)
treec6cd6ac2440b15de093b623e71ce0857541ca788 /src
parent84a4e6608dbda38c724ab196a226db209a50b224 (diff)
update-utmp: let's use STR_IN_SET() where it is pretty
Diffstat (limited to 'src')
-rw-r--r--src/update-utmp/update-utmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c
index 8ae4a8a833..a8efe8e91f 100644
--- a/src/update-utmp/update-utmp.c
+++ b/src/update-utmp/update-utmp.c
@@ -34,6 +34,7 @@
#include "log.h"
#include "macro.h"
#include "special.h"
+#include "strv.h"
#include "unit-name.h"
#include "util.h"
#include "utmp-wtmp.h"
@@ -107,7 +108,7 @@ static int get_current_runlevel(Context *c) {
if (r < 0)
return log_warning_errno(r, "Failed to get state: %s", bus_error_message(&error, r));
- if (streq(state, "active") || streq(state, "reloading"))
+ if (STR_IN_SET(state, "active", "reloading"))
return table[i].runlevel;
}