summaryrefslogtreecommitdiffstats
path: root/src/home/homectl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-14 11:45:01 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-15 08:50:45 +0100
commitb1e8f46c318d88df8e0939e6cf2428ba4c343957 (patch)
tree89c247b1baca24664887a77b9ce55d04ec38887a /src/home/homectl.c
parentMove and rename parse_path_argument() function (diff)
downloadsystemd-b1e8f46c318d88df8e0939e6cf2428ba4c343957.tar.xz
systemd-b1e8f46c318d88df8e0939e6cf2428ba4c343957.zip
Move and rename parse_json_argument() function
json.[ch] is a very generic implementation, and cmdline argument parsing doesn't fit there.
Diffstat (limited to 'src/home/homectl.c')
-rw-r--r--src/home/homectl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homectl.c b/src/home/homectl.c
index c667419a51..83fc86efe3 100644
--- a/src/home/homectl.c
+++ b/src/home/homectl.c
@@ -3234,7 +3234,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_JSON:
- r = json_parse_cmdline_parameter_and_warn(optarg, &arg_json_format_flags);
+ r = parse_json_argument(optarg, &arg_json_format_flags);
if (r <= 0)
return r;