From debc2efd75e3211934c2f4262140e7c28f574945 Mon Sep 17 00:00:00 2001 From: Alok Barsode Date: Tue, 22 Jul 2008 23:45:33 +0530 Subject: Adding adapter_get_address. Signed-off-by: Alok Barsode --- hcid/agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hcid/agent.c') diff --git a/hcid/agent.c b/hcid/agent.c index 3a46043c..3cae00a5 100644 --- a/hcid/agent.c +++ b/hcid/agent.c @@ -386,6 +386,7 @@ static void pincode_reply(DBusPendingCall *call, void *user_data) bdaddr_t sba; size_t len; char *pin; + const gchar *source = adapter_get_address(adapter); /* steal_reply will always return non-NULL since the callback * is only called after a reply has been received */ @@ -423,7 +424,7 @@ static void pincode_reply(DBusPendingCall *call, void *user_data) goto done; } - str2ba(adapter->address, &sba); + str2ba(source, &sba); set_pin_length(&sba, len); -- cgit