Mesa (master): mesa: fix inconsistent function declaration, definitions
Brian Paul
brianp at kemper.freedesktop.org
Fri Jul 12 14:31:12 UTC 2013
Module: Mesa
Branch: master
Commit: 738337356be7b138af98c01a55279c5a940833d9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=738337356be7b138af98c01a55279c5a940833d9
Author: Brian Paul <brianp at vmware.com>
Date: Mon Jul 8 09:58:12 2013 -0600
mesa: fix inconsistent function declaration, definitions
To silence MSVC warnings that the declaration and definitions
were different.
---
src/mesa/main/hash_table.c | 4 ++--
src/mesa/main/set.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/hash_table.c b/src/mesa/main/hash_table.c
index af0510d..008b4cd 100644
--- a/src/mesa/main/hash_table.c
+++ b/src/mesa/main/hash_table.c
@@ -110,8 +110,8 @@ entry_is_present(const struct hash_table *ht, struct hash_entry *entry)
struct hash_table *
_mesa_hash_table_create(void *mem_ctx,
- bool key_equals_function(const void *a,
- const void *b))
+ bool (*key_equals_function)(const void *a,
+ const void *b))
{
struct hash_table *ht;
diff --git a/src/mesa/main/set.c b/src/mesa/main/set.c
index 2519b96..dc3550c 100644
--- a/src/mesa/main/set.c
+++ b/src/mesa/main/set.c
@@ -103,8 +103,8 @@ entry_is_present(struct set_entry *entry)
struct set *
_mesa_set_create(void *mem_ctx,
- bool key_equals_function(const void *a,
- const void *b))
+ bool (*key_equals_function)(const void *a,
+ const void *b))
{
struct set *ht;
More information about the mesa-commit
mailing list