diff options
author | David Robillard <d@drobilla.net> | 2022-10-20 21:34:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-20 21:34:17 -0400 |
commit | 60e86c7b2a05dab33fc66f4fa5b2954d79456cb6 (patch) | |
tree | d6f7be96c7d2ae85241e5b76a2ae5e62e2616df6 | |
parent | 5eb8ceef3fd92cc2dccd9efc1fd8f2baed0a492c (diff) | |
download | zix-60e86c7b2a05dab33fc66f4fa5b2954d79456cb6.tar.gz zix-60e86c7b2a05dab33fc66f4fa5b2954d79456cb6.tar.bz2 zix-60e86c7b2a05dab33fc66f4fa5b2954d79456cb6.zip |
Fix mismatched function types
-rw-r--r-- | benchmark/dict_bench.c | 2 | ||||
-rw-r--r-- | include/zix/common.h | 3 |
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); |