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
@@ -489,7 +489,7 @@ int setup_macvlan(const char *machine_name, pid_t pid, char **ifaces) {
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to add netlink interface index: %m");
|
||||
|
||||
n = strappend("mv-", *i);
|
||||
n = strjoin("mv-", *i);
|
||||
if (!n)
|
||||
return log_oom();
|
||||
|
||||
@@ -564,7 +564,7 @@ int setup_ipvlan(const char *machine_name, pid_t pid, char **ifaces) {
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to add netlink interface index: %m");
|
||||
|
||||
n = strappend("iv-", *i);
|
||||
n = strjoin("iv-", *i);
|
||||
if (!n)
|
||||
return log_oom();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user