OSDN Git Service

health: Update to new adapter_get_device API
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 25 Jan 2013 08:59:24 +0000 (10:59 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 25 Jan 2013 09:00:13 +0000 (11:00 +0200)
profiles/health/hdp.c

index a42ca48..e351219 100644 (file)
@@ -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;