summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-10-05 22:05:33 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-06 19:36:29 +0200
commit5a82104bf3f5df07f9e73cab5cf7647753371c52 (patch)
tree828306a02cf4df041778240b91539bfb58f61b7c /src
parentnetwork: drop unused element (diff)
downloadsystemd-5a82104bf3f5df07f9e73cab5cf7647753371c52.tar.xz
systemd-5a82104bf3f5df07f9e73cab5cf7647753371c52.zip
network: add missing "else"
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-routing-policy-rule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-routing-policy-rule.c b/src/network/networkd-routing-policy-rule.c
index d2a8768a42..f35ab3e3db 100644
--- a/src/network/networkd-routing-policy-rule.c
+++ b/src/network/networkd-routing-policy-rule.c
@@ -1687,7 +1687,7 @@ int routing_policy_load_rules(const char *state_file, Set **rules) {
continue;
}
rule->family = r;
- } if (STR_IN_SET(a, "from", "to")) {
+ } else if (STR_IN_SET(a, "from", "to")) {
union in_addr_union *buffer;
uint8_t *prefixlen;