X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fset.c;h=52c1dabd82b4b52ecd646fc5b6ac1980e63a8327;hb=6df0fd8fe9ccf5c927797897277343f068420a45;hp=2519b96947a64bac3bb59dd0e0cdfd610fb8c475;hpb=a4b9678a5451465b7df8a7fd8acc1fa9c5300181;p=mesa.git diff --git a/src/mesa/main/set.c b/src/mesa/main/set.c index 2519b96947a..52c1dabd82b 100644 --- a/src/mesa/main/set.c +++ b/src/mesa/main/set.c @@ -36,7 +36,7 @@ #include "macros.h" #include "set.h" -#include "ralloc.h" +#include "util/ralloc.h" /* * From Knuth -- a good choice for hash/rehash values is p, p-2 where @@ -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; @@ -112,7 +112,6 @@ _mesa_set_create(void *mem_ctx, if (ht == NULL) return NULL; - ht->mem_ctx = mem_ctx; ht->size_index = 0; ht->size = hash_sizes[ht->size_index].size; ht->rehash = hash_sizes[ht->size_index].rehash;