Diff between ee25688e0a326d94bc7731917a8591b25c6cdb99 and e339d0b6e55b529fa2584cb217088b61c890e1ad

Changed Files

File Additions Deletions Status
src/device.c +2 -8 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 7a6d9ec..4306d65 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1453,8 +1453,7 @@ static void device_svc_resolved(struct btd_device *dev, int err)
 
 	if (dbus_message_is_method_call(req->msg, DEVICE_INTERFACE,
 								"Pair")) {
-		reply = dbus_message_new_method_return(req->msg);
-		g_dbus_send_message(dbus_conn, reply);
+		g_dbus_send_reply(dbus_conn, req->msg, DBUS_TYPE_INVALID);
 		return;
 	}
 
@@ -3716,13 +3715,8 @@ void device_bonding_complete(struct btd_device *device, uint8_t status)
 	 * request
 	 */
 	if (device->svc_resolved && bonding) {
-		DBusMessage *reply;
-
-		reply = dbus_message_new_method_return(bonding->msg);
-		g_dbus_send_message(dbus_conn, reply);
-
+		g_dbus_send_reply(dbus_conn, bonding->msg, DBUS_TYPE_INVALID);
 		bonding_request_free(bonding);
-
 		return;
 	}