diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-10-24 15:49:29 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-10-24 15:57:18 +0200 |
commit | c4ab32879df8b5e83b0ebd091ce2c750f53f5633 (patch) | |
tree | e59eaea3361c77240f20868a5ce641ec6000982e /bin/gensquashfs/src/mkfs.h | |
parent | 3c70940f4c1b8534e1ef547e09050d33b8187122 (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/gensquashfs/src/mkfs.h')
-rw-r--r-- | bin/gensquashfs/src/mkfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |