X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fupdate-utmp%2Fupdate-utmp.c;fp=src%2Fupdate-utmp%2Fupdate-utmp.c;h=5e2d2c60e600df57e31917a317c361339933601a;hb=fb3aeda07e139f87c787fab2e2d0bd8bf97aa3a5;hp=9f021725001d2c40190ae0c99969de9d2933eb0a;hpb=3d07573e091abc3dbd8f31070e118e91679c1b82;p=elogind.git diff --git a/src/update-utmp/update-utmp.c b/src/update-utmp/update-utmp.c index 9f0217250..5e2d2c60e 100644 --- a/src/update-utmp/update-utmp.c +++ b/src/update-utmp/update-utmp.c @@ -112,7 +112,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; }