basic/conf-files: make conf_files_list() take just a single directory

This function had two users (apart from tests), and both only used one
argument. And it seems likely that if we need to pass more directories,
either the _nulstr() or the _strv() form would be used. Let's simplify
the code.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-09-16 09:15:05 +02:00
parent 48da02ec6f
commit 36b12282e1
5 changed files with 18 additions and 26 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ static int boot_entries_find(
assert(entries);
assert(n_entries);
r = conf_files_list(&files, ".conf", NULL, 0, dir, NULL);
r = conf_files_list(&files, ".conf", NULL, 0, dir);
if (r < 0)
return log_error_errno(r, "Failed to list files in \"%s\": %m", dir);