diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-06-22 20:02:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-22 20:02:46 +0200 |
commit | cee97d57687e93e07a8ee36edf0e0d0f3317fccc (patch) | |
tree | 7278ba990e750ae119cacfd6c19a0866579374ab /src/delta/delta.c | |
parent | bpf-firewall: optimization for IPAddressXYZ="any" (and unprivileged users) (diff) | |
parent | sd-path: use _cleanup_ attribute (diff) | |
download | systemd-cee97d57687e93e07a8ee36edf0e0d0f3317fccc.tar.xz systemd-cee97d57687e93e07a8ee36edf0e0d0f3317fccc.zip |
Merge pull request #12836 from yuwata/tree-wide-replace-strjoin
tree-wide: replace strjoin() with path_join()
Diffstat (limited to 'src/delta/delta.c')
-rw-r--r-- | src/delta/delta.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c index 08d8867431..b910074964 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -200,7 +200,7 @@ static int enumerate_dir_d( assert(!endswith(drop, "/")); - path = strjoin(toppath, "/", drop); + path = path_join(toppath, drop); if (!path) return -ENOMEM; @@ -230,7 +230,7 @@ static int enumerate_dir_d( if (!endswith(*file, ".conf")) continue; - p = strjoin(path, "/", *file); + p = path_join(path, *file); if (!p) return -ENOMEM; d = p + strlen(toppath) + 1; @@ -347,7 +347,7 @@ static int enumerate_dir( STRV_FOREACH(t, files) { _cleanup_free_ char *p = NULL; - p = strjoin(path, "/", *t); + p = path_join(path, *t); if (!p) return -ENOMEM; @@ -432,7 +432,7 @@ static int process_suffix(const char *suffix, const char *onlyprefix) { if (should_skip_path(p, suffix) > 0) continue; - t = strjoin(p, "/", suffix); + t = path_join(p, suffix); if (!t) { r = -ENOMEM; goto finish; |