--- mcap/mcap.c | 4 ++-- mcap/mcap_lib.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mcap/mcap.c b/mcap/mcap.c index e9d5d36..a91f4b1 100644 --- a/mcap/mcap.c +++ b/mcap/mcap.c @@ -929,9 +929,9 @@ void mcap_mcl_set_cb(struct mcap_mcl *mcl, GError **gerr, return; } -bdaddr_t mcap_mcl_get_addr(struct mcap_mcl *mcl) +void mcap_mcl_get_addr(struct mcap_mcl *mcl, bdaddr_t *addr) { - return mcl->addr; + bacpy(addr, &mcl->addr); } static void mcap_delete_mdl(gpointer elem, gpointer user_data) diff --git a/mcap/mcap_lib.h b/mcap/mcap_lib.h index 3d6e0b6..54b40ad 100644 --- a/mcap/mcap_lib.h +++ b/mcap/mcap_lib.h @@ -134,7 +134,7 @@ void mcap_create_mcl(struct mcap_instance *ms, void mcap_close_mcl(struct mcap_mcl *mcl, gboolean cache); void mcap_mcl_set_cb(struct mcap_mcl *mcl, GError **gerr, gpointer user_data, McapMclCb cb1, ...); -bdaddr_t mcap_mcl_get_addr(struct mcap_mcl *mcl); +void mcap_mcl_get_addr(struct mcap_mcl *mcl, bdaddr_t *addr); struct mcap_mcl *mcap_mcl_ref(struct mcap_mcl *mcl); void mcap_mcl_unref(struct mcap_mcl *mcl); -- 1.6.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