diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-07-11 19:14:16 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-12 14:31:12 +0900 |
commit | b910cc72c0fb56d96bf98704450fba1f339d8527 (patch) | |
tree | c36280c1d426b1ec859ecb55872314d6a9855f35 /src/shared/cgroup-show.c | |
parent | 6fa0524133ce54889f870d7ad17ab1d1832d7460 (diff) | |
download | systemd-b910cc72c0fb56d96bf98704450fba1f339d8527.tar.gz |
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().
Diffstat (limited to 'src/shared/cgroup-show.c')
-rw-r--r-- | src/shared/cgroup-show.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/cgroup-show.c b/src/shared/cgroup-show.c index 465e38c4fb..732bc752af 100644 --- a/src/shared/cgroup-show.c +++ b/src/shared/cgroup-show.c @@ -165,7 +165,7 @@ int show_cgroup_by_path( printf("%s%s%s\n", prefix, special_glyph(SPECIAL_GLYPH_TREE_BRANCH), cg_unescape(basename(last))); if (!p1) { - p1 = strappend(prefix, special_glyph(SPECIAL_GLYPH_TREE_VERTICAL)); + p1 = strjoin(prefix, special_glyph(SPECIAL_GLYPH_TREE_VERTICAL)); if (!p1) return -ENOMEM; } @@ -187,7 +187,7 @@ int show_cgroup_by_path( printf("%s%s%s\n", prefix, special_glyph(SPECIAL_GLYPH_TREE_RIGHT), cg_unescape(basename(last))); if (!p2) { - p2 = strappend(prefix, " "); + p2 = strjoin(prefix, " "); if (!p2) return -ENOMEM; } |