From f67509cbaf923cb6fbf12b212159b2bb63a69367 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 Apr 2018 12:38:57 +0100 Subject: [PATCH] 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 Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105656 --- bus/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bus/driver.c b/bus/driver.c index e2a3bbb1c..a131170d9 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.47.3