summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-28 22:24:08 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-29 03:39:57 +0200
commitcbdfa738c245019b7b711854d03f1ed87223ba49 (patch)
treef9081722f904630f9571e0866a2a4091bec13363 /lib/common
parent23e06428674750c59c17ae2a22d17ecd42056b02 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/statistics.c2
1 files changed, 1 insertions, 1 deletions
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);