summaryrefslogtreecommitdiffstats
path: root/src/dbus-hci.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-09-08 13:39:38 +0530
committerAlok Barsode <alok.barsode@azingo.com>2008-09-08 14:31:43 +0530
commit2a8fb41c4c57b24a22f3adaab472b416faae122e (patch)
tree930c56d79ffd39c5143ccb07b817b38c558fc1bb /src/dbus-hci.c
parent9de95d439b89c8003d953d0f82b94edc27c50bbc (diff)
Redefining adapter_get_address to take bdaddr_t as parameter.
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r--src/dbus-hci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index b559e148..77f768c1 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -126,7 +126,6 @@ static void pincode_cb(struct agent *agent, DBusError *err, const char *pincode,
struct pending_auth_info *auth;
const gchar *destination = device_get_address(device);
uint16_t dev_id = adapter_get_dev_id(adapter);
- const gchar *source = adapter_get_address(adapter);
struct bonding_request_info *bonding = adapter_get_bonding_info(adapter);
/* No need to reply anything if the authentication already failed */
@@ -140,7 +139,7 @@ static void pincode_cb(struct agent *agent, DBusError *err, const char *pincode,
return;
}
- str2ba(source, &sba);
+ adapter_get_address(adapter, &sba);
str2ba(destination, &dba);
auth = adapter_find_auth_request(adapter, &dba);