diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2017-09-29 00:37:23 +0200 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2017-10-02 13:09:54 +0200 |
commit | 3742095b27f8df4b195d530b52d15bc5fea70bf1 (patch) | |
tree | 3fc7c3503845b733f1d58366436c0bb672d3613a /src/fsck | |
parent | 01a65d4180446661732d90d23a24ab692d279295 (diff) | |
download | systemd-3742095b27f8df4b195d530b52d15bc5fea70bf1.tar.gz |
tree-wide: use IN_SET where possible
In addition to the changes from #6933 this handles cases that could be
matched with the included cocci file.
Diffstat (limited to 'src/fsck')
-rw-r--r-- | src/fsck/fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index 2100681e17..434321f806 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -269,7 +269,7 @@ static int fsck_progress_socket(void) { return log_warning_errno(errno, "socket(): %m"); if (connect(fd, &sa.sa, SOCKADDR_UN_LEN(sa.un)) < 0) { - r = log_full_errno(errno == ECONNREFUSED || errno == ENOENT ? LOG_DEBUG : LOG_WARNING, + r = log_full_errno(IN_SET(errno, ECONNREFUSED, ENOENT) ? LOG_DEBUG : LOG_WARNING, errno, "Failed to connect to progress socket %s, ignoring: %m", sa.un.sun_path); safe_close(fd); return r; |