aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfshelper
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfshelper')
-rw-r--r--lib/sqfshelper/data_writer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sqfshelper/data_writer.c b/lib/sqfshelper/data_writer.c
index 71dd4be..d9e11a6 100644
--- a/lib/sqfshelper/data_writer.c
+++ b/lib/sqfshelper/data_writer.c
@@ -12,15 +12,13 @@
static uint8_t buffer[4096];
int write_data_from_file(sqfs_data_writer_t *data, sqfs_inode_generic_t *inode,
- sqfs_file_t *file, size_t block_size, int flags)
+ sqfs_file_t *file, int flags)
{
uint64_t filesz, offset;
size_t diff;
int ret;
- (void)block_size;
- (void)flags;
- if (sqfs_data_writer_begin_file(data, inode, 0))
+ if (sqfs_data_writer_begin_file(data, inode, flags))
return -1;
sqfs_inode_get_file_size(inode, &filesz);