From a5883ecb1aa94b09bcf0e7ce4184d262027c5939 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 24 Oct 2008 15:49:52 +0300 Subject: Use g_dbus_send_message instead of dbus_connection_send --- src/dbus-hci.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/dbus-hci.c') diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 9ee2e09b..a043406d 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -877,9 +877,7 @@ static void emit_device_found(const char *path, const char *address, append_dict_valist(&iter, first_key, var_args); va_end(var_args); - dbus_connection_send(connection, signal, NULL); - - dbus_message_unref(signal); + g_dbus_send_message(connection, signal); } void hcid_dbus_inquiry_result(bdaddr_t *local, bdaddr_t *peer, uint32_t class, @@ -1208,8 +1206,7 @@ void hcid_dbus_disconn_complete(bdaddr_t *local, uint8_t status, } else { reply = new_authentication_return(bonding->msg, HCI_AUTHENTICATION_FAILURE); - dbus_connection_send(connection, reply, NULL); - dbus_message_unref(reply); + g_dbus_send_message(connection, reply); } adapter_free_bonding_request(adapter); } -- cgit