--- src/glib-helper.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/glib-helper.c b/src/glib-helper.c index edc46d8..8cf29ae 100644 --- a/src/glib-helper.c +++ b/src/glib-helper.c @@ -525,7 +525,6 @@ int bt_discover_primary(const bdaddr_t *src, const bdaddr_t *dst, int psm, { struct gattrib_context *ctxt; GIOChannel *io; - GError *gerr = NULL; ctxt = g_try_new0(struct gattrib_context, 1); if (ctxt == NULL) @@ -538,14 +537,14 @@ int bt_discover_primary(const bdaddr_t *src, const bdaddr_t *dst, int psm, ctxt->destroy = destroy; if (psm < 0) - io = bt_io_connect(BT_IO_L2CAP, connect_cb, ctxt, NULL, &gerr, + io = bt_io_connect(BT_IO_L2CAP, connect_cb, ctxt, NULL, NULL, BT_IO_OPT_SOURCE_BDADDR, src, BT_IO_OPT_DEST_BDADDR, dst, BT_IO_OPT_CID, GATT_CID, BT_IO_OPT_SEC_LEVEL, sec_level, BT_IO_OPT_INVALID); else - io = bt_io_connect(BT_IO_L2CAP, connect_cb, ctxt, NULL, &gerr, + io = bt_io_connect(BT_IO_L2CAP, connect_cb, ctxt, NULL, NULL, BT_IO_OPT_SOURCE_BDADDR, src, BT_IO_OPT_DEST_BDADDR, dst, BT_IO_OPT_PSM, psm, -- 1.7.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html