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
@@ -1517,12 +1517,7 @@ static int subvol_snapshot_children(
|
||||
if (ioctl(old_fd, BTRFS_IOC_INO_LOOKUP, &ino_args) < 0)
|
||||
return -errno;
|
||||
|
||||
/* The kernel returns an empty name if the
|
||||
* subvolume is in the top-level directory,
|
||||
* and otherwise appends a slash, so that we
|
||||
* can just concatenate easily here, without
|
||||
* adding a slash. */
|
||||
c = strappend(ino_args.name, p);
|
||||
c = path_join(ino_args.name, p);
|
||||
if (!c)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user