diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-10 20:21:46 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-11 17:17:13 +0100 |
commit | b98680b2b83c441915d09e7f394bb838abe48696 (patch) | |
tree | 21f93df0b70e5605cabb9fb1143ed500fa735199 /src/network/networkd-routing-policy-rule.c | |
parent | conf-parser: use return codes in xxx_from_string() (diff) | |
download | systemd-b98680b2b83c441915d09e7f394bb838abe48696.tar.xz systemd-b98680b2b83c441915d09e7f394bb838abe48696.zip |
tree-wide: use error codes in xxx_from_string()
Diffstat (limited to 'src/network/networkd-routing-policy-rule.c')
-rw-r--r-- | src/network/networkd-routing-policy-rule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-routing-policy-rule.c b/src/network/networkd-routing-policy-rule.c index da8778dd1e..7802a1e55a 100644 --- a/src/network/networkd-routing-policy-rule.c +++ b/src/network/networkd-routing-policy-rule.c @@ -1422,7 +1422,7 @@ int config_parse_routing_policy_rule_family( a = routing_policy_rule_address_family_from_string(rvalue); if (a < 0) { - log_syntax(unit, LOG_WARNING, filename, line, 0, + log_syntax(unit, LOG_WARNING, filename, line, a, "Invalid address family '%s', ignoring.", rvalue); return 0; } @@ -1547,7 +1547,7 @@ int config_parse_routing_policy_rule_type( t = fr_act_type_from_string(rvalue); if (t < 0) { - log_syntax(unit, LOG_WARNING, filename, line, 0, + log_syntax(unit, LOG_WARNING, filename, line, t, "Could not parse FIB rule type \"%s\", ignoring assignment: %m", rvalue); return 0; } |