From c4ab32879df8b5e83b0ebd091ce2c750f53f5633 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 24 Oct 2023 15:49:29 +0200 Subject: Cleanup: gensquashfs: simplify apply_xattrs - Pass the option structure along and use it's values rather than passing several of them individually - free() the path ASAP, so we don't have it around anymore when we go into the recursion step - shorten some argument names. Together with the above changes, this allows collapsing some multi line blocks into much simpler constructs. Signed-off-by: David Oberhollenzer --- bin/gensquashfs/src/mkfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/gensquashfs/src/mkfs.h') diff --git a/bin/gensquashfs/src/mkfs.h b/bin/gensquashfs/src/mkfs.h index a762966..06774df 100644 --- a/bin/gensquashfs/src/mkfs.h +++ b/bin/gensquashfs/src/mkfs.h @@ -72,8 +72,8 @@ struct XattrMap { void process_command_line(options_t *opt, int argc, char **argv); -int apply_xattrs(fstree_t *fs, const char *path, void *selinux_handle, - void *xattr_map, sqfs_xattr_writer_t *xwr, bool scan_xattr); +int apply_xattrs(fstree_t *fs, const options_t *opt, void *selinux_handle, + void *xattr_map, sqfs_xattr_writer_t *xwr); void *xattr_open_map_file(const char *path); -- cgit v1.2.3