aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/hash_table.h
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-10-27 17:43:45 +0100
committerLionel Landwerlin <[email protected]>2017-10-30 15:18:00 +0000
commita8b1715b8ab974518f9713b82955f049a2c1c7ec (patch)
tree896215560a4d861dfcdf1ecc013fddb8eaac926f /src/util/hash_table.h
parentc220202a73d01f3f2cf1393b741f5ef8382b1424 (diff)
util: hashtable: make hashing prototypes match
It seems nobody's using the string hashing function. If you try to pass it directly to the hashtable creation function, you'll get compiler warning for non matching prototypes. Let's make them match. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/util/hash_table.h')
-rw-r--r--src/util/hash_table.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h
index cf939130fcf..d3e0758b265 100644
--- a/src/util/hash_table.h
+++ b/src/util/hash_table.h
@@ -94,7 +94,7 @@ _mesa_hash_table_random_entry(struct hash_table *ht,
bool (*predicate)(struct hash_entry *entry));
uint32_t _mesa_hash_data(const void *data, size_t size);
-uint32_t _mesa_hash_string(const char *key);
+uint32_t _mesa_hash_string(const void *key);
bool _mesa_key_string_equal(const void *a, const void *b);
bool _mesa_key_pointer_equal(const void *a, const void *b);