]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journald-syslog.c
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / src / journal / journald-syslog.c
index fa597e47a234bc7d9ef39378eedbe83c4391d4fe..7d040de893976255478a9bbae7b6ddde47c1ce83 100644 (file)
@@ -91,7 +91,7 @@ static void forward_syslog_iovec(Server *s, const struct iovec *iovec, unsigned
                 return;
         }
 
-        if (ucred && (errno == ESRCH || errno == EPERM)) {
+        if (ucred && IN_SET(errno, ESRCH, EPERM)) {
                 struct ucred u;
 
                 /* Hmm, presumably the sender process vanished