]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/terminal-util.c
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / src / basic / terminal-util.c
index 64745e80632c7a6b9b68843280032df2962c5107..28c8c35fe0f64d20acba2ad5fdc64779b81fbd25 100644 (file)
@@ -476,7 +476,7 @@ int acquire_terminal(
 
                         l = read(notify, &buffer, sizeof(buffer));
                         if (l < 0) {
-                                if (errno == EINTR || errno == EAGAIN)
+                                if (IN_SET(errno, EINTR, EAGAIN))
                                         continue;
 
                                 r = -errno;