summaryrefslogtreecommitdiffstats
path: root/src/network/test-networkd-conf.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-09-06 03:38:15 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-09-06 03:38:15 +0200
commitc6f2197fcffd8c8ce585837afd66a382015855f0 (patch)
tree35c148152e11c6f1c12b71e09f3cdd6411e25981 /src/network/test-networkd-conf.c
parentnetwork/address: introduce generic config parser for [Address] section (diff)
downloadsystemd-c6f2197fcffd8c8ce585837afd66a382015855f0.tar.xz
systemd-c6f2197fcffd8c8ce585837afd66a382015855f0.zip
network/address: use generic section parser more
This also - rename variable n -> address, - use log_syntax_parse_error() where applicable, - add one more assertion for lvalue in config_parse_address().
Diffstat (limited to '')
-rw-r--r--src/network/test-networkd-conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/test-networkd-conf.c b/src/network/test-networkd-conf.c
index 186d9d3e65..f44383d03a 100644
--- a/src/network/test-networkd-conf.c
+++ b/src/network/test-networkd-conf.c
@@ -194,7 +194,7 @@ static void test_config_parse_address_one(const char *rvalue, int family, unsign
assert_se(network->filename = strdup("hogehoge.network"));
assert_se(config_parse_match_ifnames("network", "filename", 1, "section", 1, "Name", 0, "*", &network->match.ifname, network) == 0);
- assert_se(config_parse_address("network", "filename", 1, "section", 1, "Address", 0, rvalue, network, network) == 0);
+ assert_se(config_parse_address_section("network", "filename", 1, "section", 1, "Address", ADDRESS_ADDRESS, rvalue, network, network) == 0);
assert_se(ordered_hashmap_size(network->addresses_by_section) == 1);
assert_se(network_verify(network) >= 0);
assert_se(ordered_hashmap_size(network->addresses_by_section) == n_addresses);