From 48e83fc78077112a2fa52dd3f72f1f656e41c644 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 17 Jan 2022 10:04:28 +0100 Subject: [PATCH] pulse-server: find_object -> find_object_by_id --- src/modules/module-protocol-pulse/manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/module-protocol-pulse/manager.c b/src/modules/module-protocol-pulse/manager.c index 490746157..e7cc9d0c8 100644 --- a/src/modules/module-protocol-pulse/manager.c +++ b/src/modules/module-protocol-pulse/manager.c @@ -163,7 +163,7 @@ static bool has_param(struct spa_list *param_list, struct pw_manager_param *p) } -static struct object *find_object(struct manager *m, uint32_t id) +static struct object *find_object_by_id(struct manager *m, uint32_t id) { struct object *o; spa_list_for_each(o, &m->this.object_list, this.link) { @@ -638,7 +638,7 @@ static void registry_event_global_remove(void *object, uint32_t id) struct manager *m = object; struct object *o; - if ((o = find_object(m, id)) == NULL) + if ((o = find_object_by_id(m, id)) == NULL) return; o->this.removing = true; @@ -757,7 +757,7 @@ int pw_manager_set_metadata(struct pw_manager *manager, char buf[1024]; char *value; - if ((s = find_object(m, subject)) == NULL) + if ((s = find_object_by_id(m, subject)) == NULL) return -ENOENT; if (!SPA_FLAG_IS_SET(s->this.permissions, PW_PERM_M)) return -EACCES;