summaryrefslogtreecommitdiff
path: root/src/modules-load.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-28 23:51:24 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-28 23:51:24 +0200
commit44143309dd0b37d61d7d842ca58f01a65646ec71 (patch)
treeb22d8adcb45561c41348bc4361a24b9cc673d6f1 /src/modules-load.c
parentb23de6af893c11da4286bc416455cd0926d1532e (diff)
util: conf_files_list() return list as parameter
Diffstat (limited to 'src/modules-load.c')
-rw-r--r--src/modules-load.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/modules-load.c b/src/modules-load.c
index fac4511816..7efd81f75b 100644
--- a/src/modules-load.c
+++ b/src/modules-load.c
@@ -53,13 +53,12 @@ int main(int argc, char *argv[]) {
n_arguments = n_allocated = 3;
- files = conf_files_list(".conf",
- "/run/modules-load.d",
- "/etc/modules-load.d",
- "/usr/lib/modules-load.d",
- NULL);
- if (files == NULL) {
- log_error("Failed to enumerate modules-load.d files: %m");
+ if (conf_files_list(&files, ".conf",
+ "/run/modules-load.d",
+ "/etc/modules-load.d",
+ "/usr/lib/modules-load.d",
+ NULL) < 0) {
+ log_error("Failed to enumerate modules-load.d files: %s", strerror(-r));
goto finish;
}