diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-03-04 01:09:18 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-03-04 01:09:18 +0100 |
commit | 74b739ac61fb49f93a8ce814a37026bf1d405466 (patch) | |
tree | 5f05446ed9081db38bbbd36ed9f3681a15686dd6 /unpack | |
parent | 44c81eeffe9c8820b1009a7a5c728782aa5ebf40 (diff) |
Cleanup: match xattr reader API closer to id table API
Instead of creating everything in the "create" function, cleanup and
create/initialize stuff in a "load" function. This allows the xattr
reader to be reset/re-used and adds the benefit of not having to
lug around references to the super block, compressor and file (altough
the later two are hidden inside the meta reader).
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'unpack')
-rw-r--r-- | unpack/rdsquashfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unpack/rdsquashfs.c b/unpack/rdsquashfs.c index 99e51fb..7b3bddf 100644 --- a/unpack/rdsquashfs.c +++ b/unpack/rdsquashfs.c @@ -74,14 +74,14 @@ int main(int argc, char **argv) } if (!(super.flags & SQFS_FLAG_NO_XATTRS)) { - xattr = sqfs_xattr_reader_create(file, &super, cmp); + xattr = sqfs_xattr_reader_create(0); if (xattr == NULL) { sqfs_perror(opt.image_name, "creating xattr reader", SQFS_ERROR_ALLOC); goto out_cmp; } - ret = sqfs_xattr_reader_load_locations(xattr); + ret = sqfs_xattr_reader_load(xattr, &super, file, cmp); if (ret) { sqfs_perror(opt.image_name, "loading xattr table", ret); |