From 60e86c7b2a05dab33fc66f4fa5b2954d79456cb6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Oct 2022 21:34:17 -0400 Subject: Fix mismatched function types --- benchmark/dict_bench.c | 2 +- include/zix/common.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/benchmark/dict_bench.c b/benchmark/dict_bench.c index 82a4b78..640e50e 100644 --- a/benchmark/dict_bench.c +++ b/benchmark/dict_bench.c @@ -135,7 +135,7 @@ run(FILE* const fd) ZixHash* zhash = zix_hash_new(NULL, identity, (ZixHashFunc)zix_chunk_hash, - (ZixEqualFunc)zix_chunk_equal); + (ZixKeyEqualFunc)zix_chunk_equal); fprintf(insert_dat, "%zu", n); fprintf(search_dat, "%zu", n); diff --git a/include/zix/common.h b/include/zix/common.h index 5a71be5..df49afe 100644 --- a/include/zix/common.h +++ b/include/zix/common.h @@ -53,9 +53,6 @@ typedef int (*ZixComparator)(const void* a, const void* b, const void* user_data); -/// Function for testing equality of two elements -typedef bool (*ZixEqualFunc)(const void* a, const void* b); - /// Function to destroy an element typedef void (*ZixDestroyFunc)(void* ptr, const void* user_data); -- cgit v1.2.1