tree-wide: replace strv_sort() + strv_uniq() -> strv_sort_uniq()

This commit is contained in:
Yu Watanabe
2024-06-18 00:37:50 +09:00
parent 3dc546ad75
commit e367b42664
10 changed files with 15 additions and 26 deletions
+3 -6
View File
@@ -329,8 +329,7 @@ static int parse_argv(int argc, char *argv[]) {
return log_oom();
}
strv_sort(arg_banks);
strv_uniq(arg_banks);
strv_sort_uniq(arg_banks);
if (arg_current)
for (UnifiedSection us = 0; us < _UNIFIED_SECTION_MAX; us++)
@@ -347,10 +346,8 @@ static int parse_argv(int argc, char *argv[]) {
"enter-initrd:leave-initrd:sysinit",
"enter-initrd:leave-initrd:sysinit:ready") < 0)
return log_oom();
} else {
strv_sort(arg_phase);
strv_uniq(arg_phase);
}
} else
strv_sort_uniq(arg_phase);
_cleanup_free_ char *j = NULL;
j = strv_join(arg_phase, ", ");