diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-08-19 16:31:27 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-09-16 09:15:05 +0200 |
commit | 36b12282e1b68b963a3df1d2e6e0597a0847f792 (patch) | |
tree | 4f7c85f0a7c55ae082f8f74c39ed8e19513fe5e9 /src/basic/conf-files.h | |
parent | 48da02ec6f46c93b083d0790e031d8f73b877858 (diff) | |
download | systemd-36b12282e1b68b963a3df1d2e6e0597a0847f792.tar.gz systemd-36b12282e1b68b963a3df1d2e6e0597a0847f792.tar.bz2 systemd-36b12282e1b68b963a3df1d2e6e0597a0847f792.zip |
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.
Diffstat (limited to 'src/basic/conf-files.h')
-rw-r--r-- | src/basic/conf-files.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/conf-files.h b/src/basic/conf-files.h index 55ab326402..7d7be5c90f 100644 --- a/src/basic/conf-files.h +++ b/src/basic/conf-files.h @@ -11,7 +11,7 @@ enum { CONF_FILES_FILTER_MASKED = 1 << 4, }; -int conf_files_list(char ***ret, const char *suffix, const char *root, unsigned flags, const char *dir, ...) _sentinel_; +int conf_files_list(char ***ret, const char *suffix, const char *root, unsigned flags, const char *dir); int conf_files_list_strv(char ***ret, const char *suffix, const char *root, unsigned flags, const char* const* dirs); int conf_files_list_nulstr(char ***ret, const char *suffix, const char *root, unsigned flags, const char *dirs); int conf_files_insert(char ***strv, const char *root, char **dirs, const char *path); |