From aefc020257e5cf89ecec036a33ef1637297cecf7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 13 Nov 2018 10:59:07 +0100 Subject: Make hash return non-const pointers --- zix/hash.c | 4 ++-- zix/hash.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'zix') diff --git a/zix/hash.c b/zix/hash.c index f633e16..a588e0a 100644 --- a/zix/hash.c +++ b/zix/hash.c @@ -1,5 +1,5 @@ /* - Copyright 2011-2014 David Robillard + Copyright 2011-2018 David Robillard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -141,7 +141,7 @@ find_entry(const ZixHash* hash, return NULL; } -ZIX_API const void* +ZIX_API void* zix_hash_find(const ZixHash* hash, const void* value) { const unsigned h_nomod = hash->hash_func(value); diff --git a/zix/hash.h b/zix/hash.h index e95b773..68cbbe6 100644 --- a/zix/hash.h +++ b/zix/hash.h @@ -1,5 +1,5 @@ /* - Copyright 2011-2012 David Robillard + Copyright 2011-2015 David Robillard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -112,7 +112,7 @@ zix_hash_remove(ZixHash* hash, @param hash The hash table. @param value The value to search for. */ -ZIX_API const void* +ZIX_API void* zix_hash_find(const ZixHash* hash, const void* value); -- cgit v1.2.1