diff options
author | Alok Barsode <alok.barsode@azingo.com> | 2008-09-08 13:39:38 +0530 |
---|---|---|
committer | Alok Barsode <alok.barsode@azingo.com> | 2008-09-08 14:31:43 +0530 |
commit | 2a8fb41c4c57b24a22f3adaab472b416faae122e (patch) | |
tree | 930c56d79ffd39c5143ccb07b817b38c558fc1bb /src/agent.c | |
parent | 9de95d439b89c8003d953d0f82b94edc27c50bbc (diff) |
Redefining adapter_get_address to take bdaddr_t as parameter.
Diffstat (limited to 'src/agent.c')
-rw-r--r-- | src/agent.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/agent.c b/src/agent.c index 44ce3b11..e8f9c651 100644 --- a/src/agent.c +++ b/src/agent.c @@ -371,7 +371,8 @@ static void pincode_reply(DBusPendingCall *call, void *user_data) bdaddr_t sba; size_t len; char *pin; - const gchar *source = adapter_get_address(adapter); + + adapter_get_address(adapter, &sba); /* steal_reply will always return non-NULL since the callback * is only called after a reply has been received */ @@ -416,8 +417,6 @@ static void pincode_reply(DBusPendingCall *call, void *user_data) goto done; } - str2ba(source, &sba); - set_pin_length(&sba, len); cb(agent, NULL, pin, req->user_data); |