]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkd-dhcp-common.c
extract-word: modernize extract_many_words
[thirdparty/systemd.git] / src / network / networkd-dhcp-common.c
index 2edd849cce131f2943c90dad5e6a45204fc4ffee..2b442aa4c18bda44ae5bfdd2bab92248e912b457 100644 (file)
@@ -447,7 +447,7 @@ int config_parse_ndisc_route_metric(
                 _cleanup_free_ char *high = NULL, *medium = NULL, *low = NULL;
                 const char *p = rvalue;
 
-                r = extract_many_words(&p, ":", EXTRACT_DONT_COALESCE_SEPARATORS, &high, &medium, &low, NULL);
+                r = extract_many_words(&p, ":", EXTRACT_DONT_COALESCE_SEPARATORS, &high, &medium, &low);
                 if (r == -ENOMEM)
                         return log_oom();
                 if (r != 3 || !isempty(p)) {