From 614b022c76e72a3d20ff48f2bc58ca7c3f86b84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 14 Feb 2021 11:39:48 +0100 Subject: 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. --- src/cryptenroll/cryptenroll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cryptenroll') diff --git a/src/cryptenroll/cryptenroll.c b/src/cryptenroll/cryptenroll.c index fa4dfb6ef2..a137a41c9d 100644 --- a/src/cryptenroll/cryptenroll.c +++ b/src/cryptenroll/cryptenroll.c @@ -16,6 +16,7 @@ #include "libfido2-util.h" #include "main-func.h" #include "memory-util.h" +#include "parse-argument.h" #include "parse-util.h" #include "path-util.h" #include "pkcs11-util.h" @@ -323,7 +324,7 @@ static int parse_argv(int argc, char *argv[]) { return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Too many arguments, refusing."); - r = parse_path_argument_and_warn(argv[optind], false, &arg_node); + r = parse_path_argument(argv[optind], false, &arg_node); if (r < 0) return r; -- cgit v1.2.1