hashmap: constify pointer of pa_hashmap_get

relies upon the same having just been done for the private hash_scan
function
This commit is contained in:
Lyndon Brown 2018-05-27 02:57:12 +01:00 committed by Arun Raghavan
parent d9f72d9f42
commit b757a2de5b
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ int pa_hashmap_put(pa_hashmap *h, void *key, void *value) {
return 0; 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; unsigned hash;
struct hashmap_entry *e; struct hashmap_entry *e;

View file

@ -45,7 +45,7 @@ void pa_hashmap_free(pa_hashmap*);
int pa_hashmap_put(pa_hashmap *h, void *key, void *value); int pa_hashmap_put(pa_hashmap *h, void *key, void *value);
/* Return an entry from the hashmap */ /* 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 */ /* Returns the data of the entry while removing */
void* pa_hashmap_remove(pa_hashmap *h, const void *key); void* pa_hashmap_remove(pa_hashmap *h, const void *key);