From cbdfa738c245019b7b711854d03f1ed87223ba49 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 28 May 2020 22:24:08 +0200 Subject: Turn the sqfs_block_writer_t into an interface This way, everything that could be done through the hooks (and more) can be done by simply providign a custom implementation. The result is a lot clener that the previous hook based version. Signed-off-by: David Oberhollenzer --- lib/common/statistics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/common') diff --git a/lib/common/statistics.c b/lib/common/statistics.c index 079c1b1..82e545d 100644 --- a/lib/common/statistics.c +++ b/lib/common/statistics.c @@ -18,7 +18,7 @@ void sqfs_print_statistics(const sqfs_super_t *super, size_t ratio; proc_stats = sqfs_block_processor_get_stats(blk); - blocks_written = sqfs_block_writer_get_block_count(wr); + blocks_written = wr->get_block_count(wr); bytes_written = super->inode_table_start - sizeof(*super); -- cgit v1.2.3