hashmap: constify pointer of private hash_scan function

paves the way for doing the same for pa_hashmap_get and users of it
This commit is contained in:
Lyndon Brown 2018-05-27 02:56:11 +01:00 committed by Arun Raghavan
parent 65450eea2c
commit d9f72d9f42

View file

@ -119,7 +119,7 @@ void pa_hashmap_free(pa_hashmap *h) {
pa_xfree(h); pa_xfree(h);
} }
static struct hashmap_entry *hash_scan(pa_hashmap *h, unsigned hash, const void *key) { static struct hashmap_entry *hash_scan(const pa_hashmap *h, unsigned hash, const void *key) {
struct hashmap_entry *e; struct hashmap_entry *e;
pa_assert(h); pa_assert(h);
pa_assert(hash < NBUCKETS); pa_assert(hash < NBUCKETS);