chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Consistently use ERFKILL for masked units
[elogind.git]
/
src
/
basic
/
conf-files.c
diff --git
a/src/basic/conf-files.c
b/src/basic/conf-files.c
index 92fc792d6094e8ab237383b379d2da8373ba4228..b953029638d99af9119f0090e83d695ff9673282 100644
(file)
--- a/
src/basic/conf-files.c
+++ b/
src/basic/conf-files.c
@@
-60,7
+60,7
@@
static int files_add(Hashmap *h, const char *root, const char *path, const char
if (!dirent_is_file_with_suffix(de, suffix))
continue;
if (!dirent_is_file_with_suffix(de, suffix))
continue;
- p = strjoin(dirpath, "/", de->d_name
, NULL
);
+ p = strjoin(dirpath, "/", de->d_name);
if (!p)
return -ENOMEM;
if (!p)
return -ENOMEM;
@@
-141,7
+141,6
@@
int conf_files_list(char ***strv, const char *suffix, const char *root, const ch
va_list ap;
assert(strv);
va_list ap;
assert(strv);
- assert(suffix);
va_start(ap, dir);
dirs = strv_new_ap(dir, ap);
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);
_cleanup_strv_free_ char **dirs = NULL;
assert(strv);
- assert(suffix);
dirs = strv_split_nulstr(d);
if (!dirs)
dirs = strv_split_nulstr(d);
if (!dirs)