tree-wide: get rid of strappend()
It's a special case of strjoin(), so no need to keep both. In particular as typing strjoin() is even shoert than strappend().
This commit is contained in:
committed by
Yu Watanabe
parent
6fa0524133
commit
b910cc72c0
@@ -87,8 +87,8 @@ static char **image_settings_path(Image *image) {
|
||||
|
||||
fn = strjoina(image->name, ".nspawn");
|
||||
|
||||
FOREACH_STRING(s, "/etc/systemd/nspawn/", "/run/systemd/nspawn/") {
|
||||
l[i] = strappend(s, fn);
|
||||
FOREACH_STRING(s, "/etc/systemd/nspawn", "/run/systemd/nspawn") {
|
||||
l[i] = path_join(s, fn);
|
||||
if (!l[i])
|
||||
return NULL;
|
||||
|
||||
@@ -441,7 +441,7 @@ int image_find(ImageClass class, const char *name, Image **ret) {
|
||||
if (errno != ENOENT)
|
||||
return -errno;
|
||||
|
||||
raw = strappend(name, ".raw");
|
||||
raw = strjoin(name, ".raw");
|
||||
if (!raw)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user