From 650c2191225dadfd6db210443012422f0d66d570 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 25 Jan 2013 10:59:24 +0200 Subject: [PATCH] health: Update to new adapter_get_device API --- profiles/health/hdp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c index a42ca4816..e3512191b 100644 --- a/profiles/health/hdp.c +++ b/profiles/health/hdp.c @@ -1204,10 +1204,8 @@ static void mcl_connected(struct mcap_mcl *mcl, gpointer data) if (l == NULL) { struct hdp_adapter *hdp_adapter = data; struct btd_device *device; - char str[18]; - ba2str(&addr, str); - device = adapter_get_device(hdp_adapter->btd_adapter, str, + device = adapter_get_device(hdp_adapter->btd_adapter, &addr, BDADDR_BREDR); if (!device) return; -- 2.47.3