chiark / gitweb /
tree-wide: use IN_SET where possible
[elogind.git] / src / basic / terminal-util.c
index d580c6dac06d826424d8b9bb229cb2f16f130b3f..b83e778b2ef2dfe1839a3219cf29fdd324496b87 100644 (file)
@@ -479,7 +479,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;