diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-07 21:06:38 -0500 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-17 17:58:36 +0200 |
commit | 147d98675baf1feeea5f7f4b3e546b9785af3155 (patch) | |
tree | 112673853c39884f10d6dcaec5520bf69f5d84e3 /src/basic/conf-files.c | |
parent | 367c17a254f548bf241f0483ff9bb7edb5935f83 (diff) |
basic/dirent-util: allow suffix to be omitted for dirent_is_file_with_suffix
Diffstat (limited to 'src/basic/conf-files.c')
-rw-r--r-- | src/basic/conf-files.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/basic/conf-files.c b/src/basic/conf-files.c index b95302963..417bc5a5b 100644 --- a/src/basic/conf-files.c +++ b/src/basic/conf-files.c @@ -43,7 +43,6 @@ static int files_add(Hashmap *h, const char *root, const char *path, const char int r; assert(path); - assert(suffix); dirpath = prefix_roota(root, path); @@ -94,7 +93,6 @@ static int conf_files_list_strv_internal(char ***strv, const char *suffix, const int r; assert(strv); - assert(suffix); /* This alters the dirs string array */ if (!path_strv_resolve_uniq(dirs, root)) @@ -127,7 +125,6 @@ int conf_files_list_strv(char ***strv, const char *suffix, const char *root, con _cleanup_strv_free_ char **copy = NULL; assert(strv); - assert(suffix); copy = strv_copy((char**) dirs); if (!copy) |