summaryrefslogtreecommitdiff
path: root/src/core/killall.c
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2017-09-29 09:58:22 +0200
committerAndreas Rammhold <andreas@rammhold.de>2017-10-02 13:09:56 +0200
commitec2ce0c5d7623c83dabf50c98253f5b0c0fb1359 (patch)
tree2be64c5b07a1c2cde8c2244a78b5e4c5e125e4b9 /src/core/killall.c
parent3742095b27f8df4b195d530b52d15bc5fea70bf1 (diff)
downloadsystemd-ec2ce0c5d7623c83dabf50c98253f5b0c0fb1359.tar.gz
tree-wide: use `!IN_SET(..)` for `a != b && a != c && …`
The included cocci was used to generate the changes. Thanks to @flo-wer for pointing this case out.
Diffstat (limited to 'src/core/killall.c')
-rw-r--r--src/core/killall.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/killall.c b/src/core/killall.c
index 3fe9fa2ed0..5e914e478d 100644
--- a/src/core/killall.c
+++ b/src/core/killall.c
@@ -174,8 +174,7 @@ static int killall(int sig, Set *pids, bool send_sighup) {
pid_t pid;
int r;
- if (d->d_type != DT_DIR &&
- d->d_type != DT_UNKNOWN)
+ if (!IN_SET(d->d_type, DT_DIR, DT_UNKNOWN))
continue;
if (parse_pid(d->d_name, &pid) < 0)