chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1b62d
)
basic/conf-files: extend conf_files_list() to list unsuffixed files
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 22 Jan 2017 19:16:19 +0000
(14:16 -0500)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000
(17:58 +0200)
5dd11ab5f36ce71138005
did a similar change for conf_files_list_strv().
Here we do the same for conf_files_list() and conf_files_list_nulstr().
No change for existing users. Tests are added.
src/basic/conf-files.c
patch
|
blob
|
history
diff --git
a/src/basic/conf-files.c
b/src/basic/conf-files.c
index 950bdf53dee75c597ccc3b1071c701dfa81c5970..b953029638d99af9119f0090e83d695ff9673282 100644
(file)
--- a/
src/basic/conf-files.c
+++ b/
src/basic/conf-files.c
@@
-141,7
+141,6
@@
int conf_files_list(char ***strv, const char *suffix, const char *root, const ch
va_list ap;
assert(strv);
- assert(suffix);
va_start(ap, dir);
dirs = strv_new_ap(dir, ap);
@@
-158,7
+157,6
@@
int conf_files_list_nulstr(char ***strv, const char *suffix, const char *root, c
_cleanup_strv_free_ char **dirs = NULL;
assert(strv);
- assert(suffix);
dirs = strv_split_nulstr(d);
if (!dirs)