summaryrefslogtreecommitdiff
path: root/tar
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-26 19:01:28 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-26 19:01:28 +0200
commit430e173af5d20ad68f6b5720e6d341b06c5b4858 (patch)
tree7767b6e75bc626d7083173884b9c1c21c1b7bbeb /tar
parentfa66e0d92d1441ab95d720728f1fb54177d5edd5 (diff)
Remove old data writer flags, and unused parameters
- The write_data_from_file function no longer needs the block size - Also remove the old data writer flags, pass the flags argument directly to the begin-file function. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tar')
-rw-r--r--tar/tar2sqfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c
index 4770810..2b5d3b2 100644
--- a/tar/tar2sqfs.c
+++ b/tar/tar2sqfs.c
@@ -111,7 +111,6 @@ static bool no_xattr = false;
static bool exportable = false;
static bool keep_time = false;
static data_writer_stats_t stats;
-static sqfs_super_t super;
static void process_args(int argc, char **argv)
{
@@ -267,7 +266,7 @@ static int write_file(tar_header_decoded_t *hdr, file_info_t *fi,
}
}
- ret = write_data_from_file(data, inode, file, super.block_size, 0);
+ ret = write_data_from_file(data, inode, file, 0);
file->destroy(file);
stats.bytes_read += filesize;
@@ -415,6 +414,7 @@ int main(int argc, char **argv)
sqfs_compressor_t *cmp;
sqfs_id_table_t *idtbl;
sqfs_file_t *outfile;
+ sqfs_super_t super;
fstree_t fs;
int ret;