summaryrefslogtreecommitdiffstats
path: root/src/partition
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-14 11:39:48 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-15 08:50:45 +0100
commit614b022c76e72a3d20ff48f2bc58ca7c3f86b84f (patch)
tree81660985be78f2523f61d0a4448c4a7fb400db8c /src/partition
parentbasic/signal-util: drop unneeded extra byte from buffer (diff)
downloadsystemd-614b022c76e72a3d20ff48f2bc58ca7c3f86b84f.tar.xz
systemd-614b022c76e72a3d20ff48f2bc58ca7c3f86b84f.zip
Move and rename parse_path_argument() function
This fits better in shared/, and the new parse-argument.c file is a good home for it.
Diffstat (limited to 'src/partition')
-rw-r--r--src/partition/repart.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c
index 2236c6927f..9828085018 100644
--- a/src/partition/repart.c
+++ b/src/partition/repart.c
@@ -45,6 +45,7 @@
#include "mkfs-util.h"
#include "mount-util.h"
#include "parse-util.h"
+#include "parse-argument.h"
#include "path-util.h"
#include "pretty-print.h"
#include "proc-cmdline.h"
@@ -3623,7 +3624,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_ROOT:
- r = parse_path_argument_and_warn(optarg, false, &arg_root);
+ r = parse_path_argument(optarg, false, &arg_root);
if (r < 0)
return r;
break;
@@ -3653,7 +3654,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_DEFINITIONS:
- r = parse_path_argument_and_warn(optarg, false, &arg_definitions);
+ r = parse_path_argument(optarg, false, &arg_definitions);
if (r < 0)
return r;
break;