summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-13 10:59:07 +0100
committerDavid Robillard <d@drobilla.net>2018-11-13 10:59:07 +0100
commitaefc020257e5cf89ecec036a33ef1637297cecf7 (patch)
treecdfea585a1be1432a7ee1dd98611ac8c70e4f5d5
parent734ca87bf6608ce018b995acb05e4ac61c30d8a9 (diff)
downloadzix-aefc020257e5cf89ecec036a33ef1637297cecf7.tar.gz
zix-aefc020257e5cf89ecec036a33ef1637297cecf7.tar.bz2
zix-aefc020257e5cf89ecec036a33ef1637297cecf7.zip
Make hash return non-const pointers
-rw-r--r--zix/hash.c4
-rw-r--r--zix/hash.h4
2 files changed, 4 insertions, 4 deletions
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 <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);
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 <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);