Merge pull request #4510 from keszybz/tree-wide-cleanups

Tree wide cleanups
This commit is contained in:
Lennart Poettering
2016-11-03 13:59:20 -06:00
committed by GitHub
91 changed files with 337 additions and 332 deletions
+5 -5
View File
@@ -1307,7 +1307,7 @@ static int unit_file_search(
STRV_FOREACH(p, paths->search_path) {
_cleanup_free_ char *path = NULL;
path = strjoin(*p, "/", info->name, NULL);
path = strjoin(*p, "/", info->name);
if (!path)
return -ENOMEM;
@@ -1332,7 +1332,7 @@ static int unit_file_search(
STRV_FOREACH(p, paths->search_path) {
_cleanup_free_ char *path = NULL;
path = strjoin(*p, "/", template, NULL);
path = strjoin(*p, "/", template);
if (!path)
return -ENOMEM;
@@ -1612,7 +1612,7 @@ static int install_info_symlink_wants(
continue;
}
path = strjoin(config_path, "/", dst, suffix, n, NULL);
path = strjoin(config_path, "/", dst, suffix, n);
if (!path)
return -ENOMEM;
@@ -1646,7 +1646,7 @@ static int install_info_symlink_link(
if (r > 0)
return 0;
path = strjoin(config_path, "/", i->name, NULL);
path = strjoin(config_path, "/", i->name);
if (!path)
return -ENOMEM;
@@ -2166,7 +2166,7 @@ int unit_file_revert(
STRV_FOREACH(j, fs) {
_cleanup_free_ char *t = NULL;
t = strjoin(*i, "/", *j, NULL);
t = strjoin(*i, "/", *j);
if (!t)
return -ENOMEM;