From b6a77a272b1a687f90999fe7aacf7a85523f0aa6 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 12 Jun 2015 17:06:48 +0200 Subject: btrfs-progs: and new path_cat helpers to send utils Add versions of path_cat and path_cat3 that do not allocate the memory. The unhandled memory allocations are still there. Signed-off-by: David Sterba --- send-utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'send-utils.h') diff --git a/send-utils.h b/send-utils.h index d28c8d5..32e4fdc 100644 --- a/send-utils.h +++ b/send-utils.h @@ -90,7 +90,9 @@ void subvol_uuid_search_add(struct subvol_uuid_search *s, int btrfs_subvolid_resolve(int fd, char *path, size_t path_len, u64 subvol_id); char *path_cat(const char *p1, const char *p2); +int path_cat_out(char *out, const char *p1, const char *p2); char *path_cat3(const char *p1, const char *p2, const char *p3); +int path_cat3_out(char *out, const char *p1, const char *p2, const char *p3); #ifdef __cplusplus } -- cgit v1.2.1