]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
extract-word: update remaining calls to `extract_many_words`
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 5 Mar 2024 07:50:07 +0000 (08:50 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 5 Mar 2024 12:21:42 +0000 (12:21 +0000)
Follow-up to 4f49512695f8214c55c206b3c2f583dc7b309e1b

src/core/execute-serialize.c
src/shared/firewall-util-nft.c
src/tmpfiles/tmpfiles.c

index 98ae2b0bcd7751d91a78c577d11f14357950363e..5782c2f175e190d3dbf934e49dfafd130a9104e7 100644 (file)
@@ -3498,8 +3498,7 @@ static int exec_context_deserialize(ExecContext *c, FILE *f) {
                                                NULL,
                                                EXTRACT_UNQUOTE|EXTRACT_CUNESCAPE|EXTRACT_UNESCAPE_SEPARATORS,
                                                &source,
-                                               &destination,
-                                               NULL);
+                                               &destination);
                         if (r < 0)
                                 return r;
                         if (r == 0)
@@ -3531,8 +3530,7 @@ static int exec_context_deserialize(ExecContext *c, FILE *f) {
                                                        ":",
                                                        EXTRACT_CUNESCAPE|EXTRACT_UNESCAPE_SEPARATORS,
                                                        &partition,
-                                                       &opts,
-                                                       NULL);
+                                                       &opts);
                                 if (r < 0)
                                         return r;
                                 if (r == 0)
@@ -3612,8 +3610,7 @@ static int exec_context_deserialize(ExecContext *c, FILE *f) {
                                                        ":",
                                                        EXTRACT_CUNESCAPE|EXTRACT_UNESCAPE_SEPARATORS,
                                                        &partition,
-                                                       &opts,
-                                                       NULL);
+                                                       &opts);
                                 if (r < 0)
                                         return r;
                                 if (r == 0)
index fe986ed21261a223670bbde6777a858a1d20e6eb..e9bd2867866676905438621a6ca551eaf97169f1 100644 (file)
@@ -1316,7 +1316,7 @@ int config_parse_nft_set(
                         return 0;
 
                 q = tuple;
-                r = extract_many_words(&q, ":", EXTRACT_CUNESCAPE, &source_str, &family_str, &table, &set, NULL);
+                r = extract_many_words(&q, ":", EXTRACT_CUNESCAPE, &source_str, &family_str, &table, &set);
                 if (r == -ENOMEM)
                         return log_oom();
                 if (r != 4 || !isempty(q)) {
index 73880245568917f7dd2a91876771c94d0c6da995..aad740a2b89aba9bce45664027403084d37c20f5 100644 (file)
@@ -3649,8 +3649,7 @@ static int parse_line(
                         &mode,
                         &user,
                         &group,
-                        &age,
-                        NULL);
+                        &age);
         if (r < 0) {
                 if (IN_SET(r, -EINVAL, -EBADSLT))
                         /* invalid quoting and such or an unknown specifier */