chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: rename cg_update_unified() → cg_unified_update()
[elogind.git]
/
src
/
basic
/
conf-files.c
diff --git
a/src/basic/conf-files.c
b/src/basic/conf-files.c
index 950bdf53dee75c597ccc3b1071c701dfa81c5970..417bc5a5b0527d0eb476d36d68f7002f2eeaa854 100644
(file)
--- 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);
int r;
assert(path);
- assert(suffix);
dirpath = prefix_roota(root, path);
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);
int r;
assert(strv);
- assert(suffix);
/* This alters the dirs string array */
if (!path_strv_resolve_uniq(dirs, root))
/* 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);
_cleanup_strv_free_ char **copy = NULL;
assert(strv);
- assert(suffix);
copy = strv_copy((char**) dirs);
if (!copy)
copy = strv_copy((char**) dirs);
if (!copy)
@@
-141,7
+138,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
+154,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)