summaryrefslogtreecommitdiffstats
path: root/src/fstab-generator
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-03-03 11:13:52 +0100
committerMike Yuan <me@yhndnzj.com>2024-03-03 12:01:00 +0100
commit4f49512695f8214c55c206b3c2f583dc7b309e1b (patch)
tree70c9ea001721617aa281e79d3aa6a0770bccf5e6 /src/fstab-generator
parentcore/service: minor cleanup for service_add_fd_store (diff)
downloadsystemd-4f49512695f8214c55c206b3c2f583dc7b309e1b.tar.xz
systemd-4f49512695f8214c55c206b3c2f583dc7b309e1b.zip
extract-word: modernize extract_many_words
Diffstat (limited to 'src/fstab-generator')
-rw-r--r--src/fstab-generator/fstab-generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index 7a235c5bf4..4d65289bef 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -159,7 +159,7 @@ static int mount_array_add(bool for_initrd, const char *str) {
assert(str);
r = extract_many_words(&str, ":", EXTRACT_CUNESCAPE | EXTRACT_DONT_COALESCE_SEPARATORS,
- &what, &where, &fstype, &options, NULL);
+ &what, &where, &fstype, &options);
if (r < 0)
return r;
if (r < 2)
@@ -177,7 +177,7 @@ static int mount_array_add_swap(bool for_initrd, const char *str) {
assert(str);
r = extract_many_words(&str, ":", EXTRACT_CUNESCAPE | EXTRACT_DONT_COALESCE_SEPARATORS,
- &what, &options, NULL);
+ &what, &options);
if (r < 0)
return r;
if (r < 1)