aboutsummaryrefslogtreecommitdiff
path: root/bin/tar2sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-19 11:16:02 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-19 11:18:07 +0200
commita872319cab2f56f207c39d6fd436741e661b809a (patch)
treead4c72d1a62a939cce7a0752bffec2faa45af387 /bin/tar2sqfs
parente1e655b02f6c54177f9070eeb221ab95c6d4e20f (diff)
libfstree: Remove external file_info_t declaration
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/tar2sqfs')
-rw-r--r--bin/tar2sqfs/src/process_tarball.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/tar2sqfs/src/process_tarball.c b/bin/tar2sqfs/src/process_tarball.c
index 94ee71c..2ba018d 100644
--- a/bin/tar2sqfs/src/process_tarball.c
+++ b/bin/tar2sqfs/src/process_tarball.c
@@ -7,7 +7,7 @@
#include "tar2sqfs.h"
static int write_file(istream_t *input_file, sqfs_writer_t *sqfs,
- const tar_header_decoded_t *hdr, file_info_t *fi)
+ const tar_header_decoded_t *hdr, tree_node_t *n)
{
int flags = 0, ret = 0;
ostream_t *out;
@@ -16,8 +16,8 @@ static int write_file(istream_t *input_file, sqfs_writer_t *sqfs,
if (no_tail_pack && hdr->actual_size > cfg.block_size)
flags |= SQFS_BLK_DONT_FRAGMENT;
- out = data_writer_ostream_create(hdr->name, sqfs->data, &fi->inode,
- flags);
+ out = data_writer_ostream_create(hdr->name, sqfs->data,
+ &(n->data.file.inode), flags);
if (out == NULL)
return -1;
@@ -126,7 +126,7 @@ static int create_node_and_repack_data(istream_t *input_file,
}
if (S_ISREG(hdr->mode)) {
- if (write_file(input_file, sqfs, hdr, &node->data.file))
+ if (write_file(input_file, sqfs, hdr, node))
return -1;
}