projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
054ab5a
)
ARB prog: Fix parameters to _mesa_calloc
author
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 27 Jul 2009 22:46:07 +0000
(15:46 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 27 Jul 2009 22:46:07 +0000
(15:46 -0700)
So totally awesome that _mesa_calloc has a different parameter
signature than calloc. Why do these libc wrappers still exist?!?
src/mesa/shader/hash_table.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/hash_table.c
b/src/mesa/shader/hash_table.c
index 3ff603b3681abd2e48900c81317d929f07f23b3f..a28a53ce027be3d3924b31cce5b25970912469f0 100644
(file)
--- a/
src/mesa/shader/hash_table.c
+++ b/
src/mesa/shader/hash_table.c
@@
-137,7
+137,7
@@
hash_table_insert(struct hash_table *ht, void *data, const void *key)
const unsigned bucket = hash_value % ht->num_buckets;
struct hash_node *node;
- node = _mesa_calloc(
1,
sizeof(*node));
+ node = _mesa_calloc(sizeof(*node));
node->data = data;
node->key = key;