summaryrefslogtreecommitdiffstats
path: root/src/test/test-nss.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-10-04 16:01:32 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-10-04 16:01:32 +0200
commit4c701096002fff540d9ddb3b21398c551ac3af78 (patch)
tree537e654dc92baa5eed5b6ff69867114384ecfa47 /src/test/test-nss.c
parentMerge pull request #6986 from OpenDZ/tixxdz/seccomp-more-default-syscalls-v1 (diff)
downloadsystemd-4c701096002fff540d9ddb3b21398c551ac3af78.tar.xz
systemd-4c701096002fff540d9ddb3b21398c551ac3af78.zip
tree-wide: use IN_SET macro (#6977)
Diffstat (limited to 'src/test/test-nss.c')
-rw-r--r--src/test/test-nss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-nss.c b/src/test/test-nss.c
index 44570caa6c..be8b9d71ba 100644
--- a/src/test/test-nss.c
+++ b/src/test/test-nss.c
@@ -97,7 +97,7 @@ static int print_gaih_addrtuples(const struct gaih_addrtuple *tuples) {
memcpy(&u, it->addr, 16);
r = in_addr_to_string(it->family, &u, &a);
- assert_se(r == 0 || r == -EAFNOSUPPORT);
+ assert_se(IN_SET(r, 0, -EAFNOSUPPORT));
if (r == -EAFNOSUPPORT)
assert_se((a = hexmem(it->addr, 16)));