From 19ce4933f3dadf3b04a2a9bd84d66d750cc010c3 Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Mon, 8 Sep 2008 17:55:14 +0530 Subject: Redefining device_get_address to take bdaddr_t as parameter. --- input/manager.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'input') 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); -- cgit