mesa: fix inconsistent function declaration, definitions
authorBrian Paul <brianp@vmware.com>
Mon, 8 Jul 2013 15:58:12 +0000 (09:58 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 12 Jul 2013 14:19:49 +0000 (08:19 -0600)
To silence MSVC warnings that the declaration and definitions
were different.

src/mesa/main/hash_table.c
src/mesa/main/set.c

index af0510da105296c70bdc544b730581dad62ff7e1..008b4cdbcc0a4fa2a23281ce7edfe7672ce7dad2 100644 (file)
@@ -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;
 
index 2519b96947a64bac3bb59dd0e0cdfd610fb8c475..dc3550c767c2a2fe29ef5e94dca68e3a09ec1dbb 100644 (file)
@@ -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;