conf-parser: turn three bool function params into a flags fields

This makes things more readable and fixes some issues with incorrect
flag propagation between the various flavours of config_parse().
This commit is contained in:
Lennart Poettering
2017-11-13 10:24:03 +01:00
parent 92b5e60542
commit bcde742e78
21 changed files with 88 additions and 91 deletions
+2 -2
View File
@@ -630,7 +630,7 @@ static int netdev_load_one(Manager *manager, const char *filename) {
r = config_parse_many(filename, network_dirs, dropin_dirname,
"Match\0NetDev\0",
config_item_perf_lookup, network_netdev_gperf_lookup,
true, netdev_raw);
CONFIG_PARSE_WARN, netdev_raw);
if (r < 0)
return r;
@@ -671,7 +671,7 @@ static int netdev_load_one(Manager *manager, const char *filename) {
r = config_parse(NULL, filename, file,
NETDEV_VTABLE(netdev)->sections,
config_item_perf_lookup, network_netdev_gperf_lookup,
false, false, false, netdev);
CONFIG_PARSE_WARN, netdev);
if (r < 0)
return r;