summaryrefslogtreecommitdiffstats
path: root/src/home/homectl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-06-17 17:06:59 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-06-17 17:37:50 +0200
commite367b4266492fede564e5edb21eda465a59b60ff (patch)
tree873a2fa94495511b644ad7e30ff7bc674f7e95da /src/home/homectl.c
parentstrv: introduce strv_sort_uniq() (diff)
downloadsystemd-e367b4266492fede564e5edb21eda465a59b60ff.tar.xz
systemd-e367b4266492fede564e5edb21eda465a59b60ff.zip
tree-wide: replace strv_sort() + strv_uniq() -> strv_sort_uniq()
Diffstat (limited to 'src/home/homectl.c')
-rw-r--r--src/home/homectl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/home/homectl.c b/src/home/homectl.c
index 535422537e..f2a04d5a0c 100644
--- a/src/home/homectl.c
+++ b/src/home/homectl.c
@@ -3836,8 +3836,7 @@ static int parse_argv(int argc, char *argv[]) {
if (r < 0)
return log_oom();
- strv_sort(list);
- strv_uniq(list);
+ strv_sort_uniq(list);
mo = sd_json_variant_unref(mo);
r = sd_json_variant_new_array_strv(&mo, list);