summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-07-08 20:13:05 +0530
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 10:33:51 -0300
commitdcf5298e8173e946e3ac2ef6150ad78d030b15d0 (patch)
treefebc8dd274a592c05ebff57fc3c1d8263072cc10 /hcid/adapter.c
parent4e63689794eaa0d5a3567efa8d150110aa648504 (diff)
Adding device_get_adapter.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index 434a428b..63414390 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -254,10 +254,12 @@ static void device_agent_removed(struct agent *agent, void *user_data)
struct device *device = user_data;
struct pending_auth_info *auth;
GSList *l;
+ struct adapter *adapter;
+ adapter = device_get_adapter(device);
device->agent = NULL;
- l = g_slist_find_custom(device->adapter->auth_reqs, agent,
+ l = g_slist_find_custom(adapter->auth_reqs, agent,
auth_info_agent_cmp);
if (!l)
return;