From c0e158aa0c9c414ff6d6f7071d5338aad47e1edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 26 Jun 2021 23:07:31 +0200 Subject: [PATCH] pipewire: global: take `const` argument The elements of the array are never modified, so change the argument to be `const`. --- src/pipewire/global.c | 2 +- src/pipewire/global.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipewire/global.c b/src/pipewire/global.c index cf5dcdd42..e44caf1e6 100644 --- a/src/pipewire/global.c +++ b/src/pipewire/global.c @@ -207,7 +207,7 @@ const struct pw_properties *pw_global_get_properties(struct pw_global *global) SPA_EXPORT int pw_global_update_keys(struct pw_global *global, - const struct spa_dict *dict, const char *keys[]) + const struct spa_dict *dict, const char * const keys[]) { if (global->registered) return -EINVAL; diff --git a/src/pipewire/global.h b/src/pipewire/global.h index e04c4f47d..1ec18fbf6 100644 --- a/src/pipewire/global.h +++ b/src/pipewire/global.h @@ -118,7 +118,7 @@ const struct pw_properties *pw_global_get_properties(struct pw_global *global); /** Update the global properties, must be done when unregistered */ int pw_global_update_keys(struct pw_global *global, - const struct spa_dict *dict, const char *keys[]); + const struct spa_dict *dict, const char * const keys[]); /** Get the object associated with the global. This depends on the type of the * global */