summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-conf.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/network/networkd-conf.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/network/networkd-conf.c')
-rw-r--r--src/network/networkd-conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-conf.c b/src/network/networkd-conf.c
index e28e018116..025662437b 100644
--- a/src/network/networkd-conf.c
+++ b/src/network/networkd-conf.c
@@ -87,7 +87,7 @@ int config_parse_duid_rawdata(
}
len = strlen(cbyte);
- if (len != 1 && len != 2) {
+ if (!IN_SET(len, 1, 2)) {
log_syntax(unit, LOG_ERR, filename, line, 0, "Invalid length - DUID byte: %s, ignoring assignment: %s.", cbyte, rvalue);
return 0;
}