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/device.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/device.c') diff --git a/src/device.c b/src/device.c index ab3017cd..031b5f4d 100644 --- a/src/device.c +++ b/src/device.c @@ -813,8 +813,7 @@ static void discover_device_reply(struct browse_req *req, sdp_list_t *recs) dbus_message_iter_close_container(&iter, &dict); - dbus_connection_send(req->conn, reply, NULL); - dbus_message_unref(reply); + g_dbus_send_message(req->conn, reply); } static void services_changed(struct btd_device *device) @@ -1050,8 +1049,7 @@ proceed: dbus_message_append_args(reply, DBUS_TYPE_OBJECT_PATH, &device->path, DBUS_TYPE_INVALID); - dbus_connection_send(req->conn, reply, NULL); - dbus_message_unref(reply); + g_dbus_send_message(req->conn, reply); cleanup: browse_req_free(req); -- cgit