aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfshelper
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 /lib/sqfshelper
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 '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);