diff options
author | Alok Barsode <alok.barsode@azingo.com> | 2008-09-08 17:55:14 +0530 |
---|---|---|
committer | Alok Barsode <alok.barsode@azingo.com> | 2008-09-08 17:55:14 +0530 |
commit | 19ce4933f3dadf3b04a2a9bd84d66d750cc010c3 (patch) | |
tree | 2cb709fd575d0cb31428d0cb2b5d6265ffb8b035 /input | |
parent | 2a8fb41c4c57b24a22f3adaab472b416faae122e (diff) |
Redefining device_get_address to take bdaddr_t as parameter.
Diffstat (limited to 'input')
-rw-r--r-- | input/manager.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/input/manager.c b/input/manager.c index 57871a34..0656b510 100644 --- a/input/manager.c +++ b/input/manager.c @@ -170,7 +170,6 @@ static int hid_device_probe(struct btd_device *device, GSList *records) { struct btd_adapter *adapter = device_get_adapter(device); const gchar *path = device_get_path(device); - const char *destination; struct hidp_connadd_req hidp; bdaddr_t src, dst; @@ -179,9 +178,7 @@ static int hid_device_probe(struct btd_device *device, GSList *records) memset(&hidp, 0, sizeof(hidp)); adapter_get_address(adapter, &src); - destination = device_get_address(device); - - str2ba(destination, &dst); + device_get_address(device, &dst); if (load_stored(&src, &dst, &hidp) == 0) goto done; @@ -212,7 +209,6 @@ static int headset_probe(struct btd_device *device, GSList *records) sdp_record_t *record = records->data; sdp_list_t *protos; uint8_t ch; - const char *destination; bdaddr_t src, dst; DBG("path %s", path); @@ -232,9 +228,7 @@ static int headset_probe(struct btd_device *device, GSList *records) } adapter_get_address(adapter, &src); - destination = device_get_address(device); - - str2ba(destination, &dst); + device_get_address(device, &dst); return fake_input_register(connection, path, &src, &dst, HSP_HS_UUID, ch); |