]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
bus_driver_get_owner_of_name: Clarify role of connection
authorSimon McVittie <smcv@collabora.com>
Tue, 17 Apr 2018 11:38:57 +0000 (12:38 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 21 Jun 2018 16:42:09 +0000 (17:42 +0100)
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 <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105656

bus/driver.c

index e2a3bbb1cc4af6ade4cf331c55853b18ee350632..a131170d957f7a1560fd109932f5e80856e2d84f 100644 (file)
@@ -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);