From b4b37a0e6634693714f35baaefa2faa61a6b91ec Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Thu, 7 Jun 2018 03:55:42 +0100 Subject: [PATCH] context: pa_context_get_server: constify --- src/pulse/context.c | 2 +- src/pulse/context.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulse/context.c b/src/pulse/context.c index 86738ed40..96193bdf5 100644 --- a/src/pulse/context.c +++ b/src/pulse/context.c @@ -1319,7 +1319,7 @@ const char* pa_get_library_version(void) { return pa_get_headers_version(); } -const char* pa_context_get_server(pa_context *c) { +const char* pa_context_get_server(const pa_context *c) { pa_assert(c); pa_assert(PA_REFCNT_VALUE(c) >= 1); diff --git a/src/pulse/context.h b/src/pulse/context.h index 4bf187275..1197a2ecd 100644 --- a/src/pulse/context.h +++ b/src/pulse/context.h @@ -233,7 +233,7 @@ int pa_context_is_local(const pa_context *c); pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_success_cb_t cb, void *userdata); /** Return the server name this context is connected to. */ -const char* pa_context_get_server(pa_context *c); +const char* pa_context_get_server(const pa_context *c); /** Return the protocol version of the library. */ uint32_t pa_context_get_protocol_version(const pa_context *c);