diff options
author | David Robillard <d@drobilla.net> | 2018-11-13 10:59:07 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-13 10:59:07 +0100 |
commit | aefc020257e5cf89ecec036a33ef1637297cecf7 (patch) | |
tree | cdfea585a1be1432a7ee1dd98611ac8c70e4f5d5 | |
parent | 734ca87bf6608ce018b995acb05e4ac61c30d8a9 (diff) | |
download | zix-aefc020257e5cf89ecec036a33ef1637297cecf7.tar.gz zix-aefc020257e5cf89ecec036a33ef1637297cecf7.tar.bz2 zix-aefc020257e5cf89ecec036a33ef1637297cecf7.zip |
Make hash return non-const pointers
-rw-r--r-- | zix/hash.c | 4 | ||||
-rw-r--r-- | zix/hash.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* - Copyright 2011-2014 David Robillard <http://drobilla.net> + Copyright 2011-2018 David Robillard <http://drobilla.net> 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); @@ -1,5 +1,5 @@ /* - Copyright 2011-2012 David Robillard <http://drobilla.net> + Copyright 2011-2015 David Robillard <http://drobilla.net> 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); |