summaryrefslogtreecommitdiff
path: root/profiles/health
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-01-25 10:59:24 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-01-25 11:00:13 +0200
commit650c2191225dadfd6db210443012422f0d66d570 (patch)
tree9b45fe341ab80b173b7f0227b67950cded4573c3 /profiles/health
parentc376ba31df39eaf0fd84943d60a5c9ce679c5483 (diff)
downloadbluez-650c2191225dadfd6db210443012422f0d66d570.tar.gz
health: Update to new adapter_get_device API
Diffstat (limited to 'profiles/health')
-rw-r--r--profiles/health/hdp.c4
1 files changed, 1 insertions, 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;