From e495a6a3f7db67da655e96087fd9b8b5324c617e Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 Apr 2018 12:38:57 +0100 Subject: [PATCH 04/39] bus_driver_get_owner_of_name: Clarify role of connection This connection is the one looking at the name, as opposed to the one that owns the name (if any). Signed-off-by: Simon McVittie --- bus/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bus/driver.c b/bus/driver.c index e2a3bbb1..a131170d 100644 --- a/bus/driver.c +++ b/bus/driver.c @@ -52,14 +52,14 @@ nonnull (const char *maybe_null, } static DBusConnection * -bus_driver_get_owner_of_name (DBusConnection *connection, +bus_driver_get_owner_of_name (DBusConnection *observer, const char *name) { BusRegistry *registry; BusService *serv; DBusString str; - registry = bus_connection_get_registry (connection); + registry = bus_connection_get_registry (observer); _dbus_string_init_const (&str, name); serv = bus_registry_lookup (registry, &str); -- 2.17.0