summaryrefslogtreecommitdiff
path: root/src/util/hash_table.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-12-14 20:21:32 -0800
committerEric Anholt <eric@anholt.net>2014-12-14 20:22:07 -0800
commit6c3115af852834476a451688734c07f0dbe13ec9 (patch)
treeee5514288d6acc0e561c653ad268f80bec399d77 /src/util/hash_table.c
parent94303a0750f9eaae3fcf598b7bf1320e521898fb (diff)
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.
Diffstat (limited to 'src/util/hash_table.c')
-rw-r--r--src/util/hash_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/hash_table.c b/src/util/hash_table.c
index e85ebe345f..0ad0383776 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);
}
/**