aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/block_processor
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-01-09 23:15:42 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-01-19 04:05:53 +0100
commitc1a5ea0d4dceeb9354ff792fc510caa854223463 (patch)
treeeb42b6c2f4021e05823dacad4ae26651771e9149 /lib/sqfs/block_processor
parent5191a25b92f903bcc2142be7ea1bfbe5ea1f5096 (diff)
Add a user pointer to the hash table implementation
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor')
-rw-r--r--lib/sqfs/block_processor/common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqfs/block_processor/common.c b/lib/sqfs/block_processor/common.c
index 1e42042..97cb790 100644
--- a/lib/sqfs/block_processor/common.c
+++ b/lib/sqfs/block_processor/common.c
@@ -261,15 +261,17 @@ fail_outblk:
return err;
}
-static uint32_t chunk_info_hash(const void *key)
+static uint32_t chunk_info_hash(void *user, const void *key)
{
const chunk_info_t *chunk = key;
+ (void)user;
return chunk->hash;
}
-static bool chunk_info_equals(const void *a, const void *b)
+static bool chunk_info_equals(void *user, const void *a, const void *b)
{
const chunk_info_t *a_ = a, *b_ = b;
+ (void)user;
return a_->size == b_->size &&
a_->hash == b_->hash;
}