From d9f72d9f42e2dfb3cc3b55591763ece58236cdb1 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 27 May 2018 02:56:11 +0100 Subject: [PATCH] hashmap: constify pointer of private hash_scan function paves the way for doing the same for pa_hashmap_get and users of it --- src/pulsecore/hashmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulsecore/hashmap.c b/src/pulsecore/hashmap.c index 6477783e2..c03af3bc8 100644 --- a/src/pulsecore/hashmap.c +++ b/src/pulsecore/hashmap.c @@ -119,7 +119,7 @@ void pa_hashmap_free(pa_hashmap *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; pa_assert(h); pa_assert(hash < NBUCKETS);