X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fhash.c;h=71bcd0f14f331f8eb1c07d5478bc46c029ee71de;hb=e7d0a9f16192ceeff9243f0ede8e399ee1ef0d44;hp=9a6c3cae89b2e9499f450a72601de78c3228d464;hpb=a1a4228b112a6aca97fef5aaaf9ffa21271a1f72;p=pspp-builds.git diff --git a/src/libpspp/hash.c b/src/libpspp/hash.c index 9a6c3cae..71bcd0f1 100644 --- a/src/libpspp/hash.c +++ b/src/libpspp/hash.c @@ -167,7 +167,7 @@ struct hsh_table struct hsh_table * hsh_create (int size, hsh_compare_func *compare, hsh_hash_func *hash, - hsh_free_func *free, void *aux) + hsh_free_func *free, const void *aux) { return hsh_create_pool (NULL, size, compare, hash, free, aux); } @@ -181,7 +181,7 @@ hsh_create (int size, hsh_compare_func *compare, hsh_hash_func *hash, struct hsh_table * hsh_create_pool (struct pool *pool, int size, hsh_compare_func *compare, hsh_hash_func *hash, - hsh_free_func *free, void *aux) + hsh_free_func *free, const void *aux) { struct hsh_table *h; int i; @@ -323,7 +323,7 @@ rehash (struct hsh_table *h, size_t new_size) /* A "algo_predicate_func" that returns true if DATA points to a non-null void. */ static bool -not_null (const void *data_, void *aux UNUSED) +not_null (const void *data_, const void *aux UNUSED) { void *const *data = data_;