From 44c81eeffe9c8820b1009a7a5c728782aa5ebf40 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 3 Mar 2020 19:43:54 +0100 Subject: Add a generic copying mechanism to sqfs_object_t This patch adds a deep-copy callback to sqfs_object_t and removes the copying mechanism from sqfs_compressor_t. This is also interesting for other types. Signed-off-by: David Oberhollenzer --- lib/sqfs/block_processor/winpthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqfs/block_processor') diff --git a/lib/sqfs/block_processor/winpthread.c b/lib/sqfs/block_processor/winpthread.c index 47f4e35..1aa77e7 100644 --- a/lib/sqfs/block_processor/winpthread.c +++ b/lib/sqfs/block_processor/winpthread.c @@ -232,7 +232,7 @@ static thread_pool_processor_t *block_processor_create(size_t max_block_size, goto fail; proc->workers[i]->shared = proc; - proc->workers[i]->cmp = cmp->create_copy(cmp); + proc->workers[i]->cmp = sqfs_copy(cmp); if (proc->workers[i]->cmp == NULL) goto fail; -- cgit v1.2.3