From: Simon McVittie Date: Tue, 17 Apr 2018 11:38:57 +0000 (+0100) Subject: bus_driver_get_owner_of_name: Clarify role of connection X-Git-Tag: dbus-1.13.6~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f67509cbaf923cb6fbf12b212159b2bb63a69367;p=thirdparty%2Fdbus.git 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 --- 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);