From: Ian Romanick Date: Mon, 27 Jul 2009 22:46:07 +0000 (-0700) Subject: ARB prog: Fix parameters to _mesa_calloc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4821099429ec059dc00a28f448bc3c537296ab55;p=mesa.git 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?!? --- diff --git a/src/mesa/shader/hash_table.c b/src/mesa/shader/hash_table.c index 3ff603b3681..a28a53ce027 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;