summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-20 21:34:17 -0400
committerDavid Robillard <d@drobilla.net>2022-10-20 21:34:17 -0400
commit60e86c7b2a05dab33fc66f4fa5b2954d79456cb6 (patch)
treed6f7be96c7d2ae85241e5b76a2ae5e62e2616df6
parent5eb8ceef3fd92cc2dccd9efc1fd8f2baed0a492c (diff)
downloadzix-60e86c7b2a05dab33fc66f4fa5b2954d79456cb6.tar.gz
zix-60e86c7b2a05dab33fc66f4fa5b2954d79456cb6.tar.bz2
zix-60e86c7b2a05dab33fc66f4fa5b2954d79456cb6.zip
Fix mismatched function types
-rw-r--r--benchmark/dict_bench.c2
-rw-r--r--include/zix/common.h3
2 files changed, 1 insertions, 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);