]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/utmp-wtmp.c
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / src / shared / utmp-wtmp.c
index 9750dcd81722f0ba25843e520784b7374f61d398..fc8548c5b3d6cf2641a6efee6b784882d9a6e4f5 100644 (file)
@@ -234,7 +234,7 @@ int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line
         if (r < 0)
                 return r;
 
-        if (ut_type == LOGIN_PROCESS || ut_type == USER_PROCESS) {
+        if (IN_SET(ut_type, LOGIN_PROCESS, USER_PROCESS)) {
                 store.ut_type = LOGIN_PROCESS;
                 r = write_entry_both(&store);
                 if (r < 0)