diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-10 21:21:57 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-10 21:21:57 +0100 |
commit | 060970feee2beea37e837e0a2d557e878e5f8290 (patch) | |
tree | ca77697c9b7f67a633382ab954fde1167e6d77ec /lib/common/writer.c | |
parent | 94a0b2783aa58b646260232ecfa3ff93f9b97d6d (diff) |
Cleanup: Use stat structs instead of hooks in tar2sqfs/gensquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/writer.c')
-rw-r--r-- | lib/common/writer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/common/writer.c b/lib/common/writer.c index 7f69752..84a40d2 100644 --- a/lib/common/writer.c +++ b/lib/common/writer.c @@ -145,9 +145,6 @@ int sqfs_writer_init(sqfs_writer_t *sqfs, const sqfs_writer_cfg_t *wrcfg) goto fail_fragtbl; } - memset(&sqfs->stats, 0, sizeof(sqfs->stats)); - register_stat_hooks(sqfs->data, &sqfs->stats); - sqfs->idtbl = sqfs_id_table_create(0); if (sqfs->idtbl == NULL) { sqfs_perror(wrcfg->filename, "creating ID table", @@ -294,7 +291,7 @@ int sqfs_writer_finish(sqfs_writer_t *sqfs, const sqfs_writer_cfg_t *cfg) } if (!cfg->quiet) - sqfs_print_statistics(&sqfs->super, &sqfs->stats); + sqfs_print_statistics(&sqfs->super, sqfs->data, sqfs->blkwr); return 0; } |