From d38d69b0507b738be818f0cc3976c968032528ae Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 8 Jul 2022 18:09:01 -0500 Subject: set_id(): Use the implied bus connection --- registryd/registry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'registryd') diff --git a/registryd/registry.c b/registryd/registry.c index 14b43908..ea88e6c2 100644 --- a/registryd/registry.c +++ b/registryd/registry.c @@ -219,7 +219,7 @@ add_application (SpiRegistry *reg, const gchar *name, const gchar *path) } static void -set_id (SpiRegistry *reg, DBusConnection *bus, const gchar *name, const gchar *path) +set_id (SpiRegistry *reg, const gchar *name, const gchar *path) { DBusMessage *message; DBusMessageIter iter, iter_variant; @@ -238,7 +238,7 @@ set_id (SpiRegistry *reg, DBusConnection *bus, const gchar *name, const gchar *p /* TODO: This will cause problems if we cycle through 2^31 ids */ reg->id++; dbus_message_iter_close_container (&iter, &iter_variant); - dbus_connection_send (bus, message, NULL); + dbus_connection_send (reg->bus, message, NULL); dbus_message_unref (message); } @@ -438,7 +438,7 @@ impl_Embed (DBusMessage *message, void *user_data) add_application (reg, app_name, obj_path); - set_id (reg, reg->bus, app_name, obj_path); + set_id (reg, app_name, obj_path); reply = dbus_message_new_method_return (message); dbus_message_iter_init_append (reply, &reply_iter); -- cgit v1.2.1