From 3c18216e23eb74af23672d0687692d785647223d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 11 Feb 2020 15:02:24 +0100 Subject: Clenaup: remove useage of sqfs_block_t from block writer The sqfs_block_t structure has been written for the block processor and exposes way too many internals. This commit removes its usage from the block writer, cutting it down to the bare essentials, so the structure can be removed from the public API later on. Signed-off-by: David Oberhollenzer --- lib/sqfs/block_processor/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqfs/block_processor') diff --git a/lib/sqfs/block_processor/common.c b/lib/sqfs/block_processor/common.c index 38941ab..e2d92c5 100644 --- a/lib/sqfs/block_processor/common.c +++ b/lib/sqfs/block_processor/common.c @@ -54,7 +54,8 @@ int process_completed_block(sqfs_block_processor_t *proc, sqfs_block_t *blk) if (!(blk->flags & SQFS_BLK_IS_COMPRESSED)) size |= 1 << 24; - err = sqfs_block_writer_write(proc->wr, blk, &location); + err = sqfs_block_writer_write(proc->wr, blk->size, blk->checksum, + blk->flags, blk->data, &location); if (err) return err; -- cgit v1.2.3