aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-05 17:11:31 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-06 22:08:36 +0100
commit378db7c6ab1336ce99136118a9b66901630ffc85 (patch)
tree10f0551ea26a2b95f741ce3713eb94e10ae8fc22 /bin
parentb950412ca3a91aa37349cf51ebe98cc84767d448 (diff)
Cleanup: replace the void-ptr with an inode-ptr in the file tree node
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin')
-rw-r--r--bin/gensquashfs/mkfs.c5
-rw-r--r--bin/tar2sqfs/process_tarball.c3
2 files changed, 2 insertions, 6 deletions
diff --git a/bin/gensquashfs/mkfs.c b/bin/gensquashfs/mkfs.c
index ac53623..9e8e2d0 100644
--- a/bin/gensquashfs/mkfs.c
+++ b/bin/gensquashfs/mkfs.c
@@ -9,7 +9,6 @@
static int pack_files(sqfs_block_processor_t *data, fstree_t *fs,
options_t *opt)
{
- sqfs_inode_generic_t **inode_ptr;
sqfs_u64 filesize;
sqfs_file_t *file;
tree_node_t *node;
@@ -59,9 +58,7 @@ static int pack_files(sqfs_block_processor_t *data, fstree_t *fs,
if (opt->no_tail_packing && filesize > opt->cfg.block_size)
flags |= SQFS_BLK_DONT_FRAGMENT;
- inode_ptr = (sqfs_inode_generic_t **)&fi->user_ptr;
-
- ret = write_data_from_file(path, data, inode_ptr, file, flags);
+ ret = write_data_from_file(path, data, &fi->inode, file, flags);
sqfs_destroy(file);
free(node_path);
diff --git a/bin/tar2sqfs/process_tarball.c b/bin/tar2sqfs/process_tarball.c
index 40a8157..1118822 100644
--- a/bin/tar2sqfs/process_tarball.c
+++ b/bin/tar2sqfs/process_tarball.c
@@ -19,8 +19,7 @@ static int write_file(istream_t *input_file, sqfs_writer_t *sqfs,
if (no_tail_pack && filesize > cfg.block_size)
flags |= SQFS_BLK_DONT_FRAGMENT;
- out = data_writer_ostream_create(hdr->name, sqfs->data,
- (sqfs_inode_generic_t **)&fi->user_ptr,
+ out = data_writer_ostream_create(hdr->name, sqfs->data, &fi->inode,
flags);
if (out == NULL)