From: Eric Anholt Date: Mon, 15 Dec 2014 04:21:32 +0000 (-0800) Subject: hash_table: Fix compiler warnings from the renaming. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c3115af852834476a451688734c07f0dbe13ec9;p=mesa.git hash_table: Fix compiler warnings from the renaming. Not sure how we both missed this. None of the callers were using the return value, though. --- diff --git a/src/util/hash_table.c b/src/util/hash_table.c index e85ebe345f8..0ad03837760 100644 --- a/src/util/hash_table.c +++ b/src/util/hash_table.c @@ -330,7 +330,7 @@ struct hash_entry * _mesa_hash_table_insert(struct hash_table *ht, const void *key, void *data) { assert(ht->key_hash_function); - hash_table_insert(ht, ht->key_hash_function(key), key, data); + return hash_table_insert(ht, ht->key_hash_function(key), key, data); } struct hash_entry * @@ -338,7 +338,7 @@ _mesa_hash_table_insert_with_hash(struct hash_table *ht, uint32_t hash, const void *key, void *data) { assert(ht->key_hash_function == NULL || hash == ht->key_hash_function(key)); - hash_table_insert(ht, hash, key, data); + return hash_table_insert(ht, hash, key, data); } /**