summaryrefslogtreecommitdiff
path: root/servicecmd
diff options
context:
space:
mode:
Diffstat (limited to 'servicecmd')
-rw-r--r--servicecmd/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/servicecmd/list.c b/servicecmd/list.c
index 07153f2..73e1aae 100644
--- a/servicecmd/list.c
+++ b/servicecmd/list.c
@@ -60,11 +60,11 @@ static int cmd_list(int argc, char **argv)
}
if (argc == 2) {
- i = svc_type_from_string(argv[1]);
+ i = svc_target_from_string(argv[1]);
if (i == -1) {
fprintf(stderr, "Unknown target `%s'\n", argv[1]);
- tell_read_help(argv[1]);
+ tell_read_help(argv[0]);
ret = EXIT_FAILURE;
goto out;
}