Module: Mesa Branch: asm-shader-rework-1 Commit: 4821099429ec059dc00a28f448bc3c537296ab55 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4821099429ec059dc00a28f448bc3c537296ab55
Author: Ian Romanick <[email protected]> Date: Mon Jul 27 15:46:07 2009 -0700 ARB prog: Fix parameters to _mesa_calloc 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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/shader/hash_table.c b/src/mesa/shader/hash_table.c index 3ff603b..a28a53c 100644 --- 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
