diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2018-05-27 02:57:12 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2018-06-04 13:19:18 +0300 |
commit | f8c161a9767943877297868ab331c030ac8b7023 (patch) | |
tree | 04cfb95c6efdf9195eeb20c68f0ee4ffdf6619e8 | |
parent | 16625c351762dcefa89fa07078602e0cee072e72 (diff) | |
download | pulseaudio-f8c161a9767943877297868ab331c030ac8b7023.tar.gz |
hashmap: constify pointer of pa_hashmap_get
relies upon the same having just been done for the private hash_scan
function
-rw-r--r-- | src/pulsecore/hashmap.c | 2 | ||||
-rw-r--r-- | src/pulsecore/hashmap.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/hashmap.c b/src/pulsecore/hashmap.c index c03af3bc8..c2fc3f5ea 100644 --- a/src/pulsecore/hashmap.c +++ b/src/pulsecore/hashmap.c @@ -173,7 +173,7 @@ int pa_hashmap_put(pa_hashmap *h, void *key, void *value) { return 0; } -void* pa_hashmap_get(pa_hashmap *h, const void *key) { +void* pa_hashmap_get(const pa_hashmap *h, const void *key) { unsigned hash; struct hashmap_entry *e; diff --git a/src/pulsecore/hashmap.h b/src/pulsecore/hashmap.h index ea883765b..c18a564f2 100644 --- a/src/pulsecore/hashmap.h +++ b/src/pulsecore/hashmap.h @@ -45,7 +45,7 @@ void pa_hashmap_free(pa_hashmap*); int pa_hashmap_put(pa_hashmap *h, void *key, void *value); /* Return an entry from the hashmap */ -void* pa_hashmap_get(pa_hashmap *h, const void *key); +void* pa_hashmap_get(const pa_hashmap *h, const void *key); /* Returns the data of the entry while removing */ void* pa_hashmap_remove(pa_hashmap *h, const void *key); |