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
+1
-1
@@ -236,7 +236,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
if (path_startswith(optarg, "/proc/sys"))
|
||||
p = strdup(optarg);
|
||||
else
|
||||
p = strappend("/proc/sys/", optarg);
|
||||
p = path_join("/proc/sys", optarg);
|
||||
if (!p)
|
||||
return log_oom();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user