From 5a146049df065d22006b0b72393666976603410c Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 27 May 2018 04:35:33 +0100 Subject: [PATCH] proplist: pa_proplist_contains: constify proplist pointer --- src/pulse/proplist.c | 2 +- src/pulse/proplist.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c index 75500246b..4ad092d65 100644 --- a/src/pulse/proplist.c +++ b/src/pulse/proplist.c @@ -632,7 +632,7 @@ fail: return NULL; } -int pa_proplist_contains(pa_proplist *p, const char *key) { +int pa_proplist_contains(const pa_proplist *p, const char *key) { pa_assert(p); pa_assert(key); diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h index f7a428261..c148c793d 100644 --- a/src/pulse/proplist.h +++ b/src/pulse/proplist.h @@ -387,7 +387,7 @@ pa_proplist *pa_proplist_from_string(const char *str); /** Returns 1 if an entry for the specified key exists in the * property list. Returns negative on error. \since 0.9.11 */ -int pa_proplist_contains(pa_proplist *p, const char *key); +int pa_proplist_contains(const pa_proplist *p, const char *key); /** Remove all entries from the property list object. \since 0.9.11 */ void pa_proplist_clear(pa_proplist *p);