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 <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105656
This commit is contained in:
Simon McVittie 2018-04-17 12:38:57 +01:00
parent 50a724b6fc
commit f67509cbaf

View 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);