summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2012-09-19 12:22:10 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-09-21 13:51:53 +0300
commit66c74b1a194b6e95148d776d4eed3c15231b84cc (patch)
tree8778cb14d3a5ee76c24f974b7a41f14fc84db61b /src/manager.c
parentae92ea28f9c6bdec8a5f74c646af35df310de129 (diff)
adapter: Simplify DBusConnection object handling
This patch removes redundant references and function parameters for DBusConnection object and uses btd_get_dbus_connection() call wherever such object is needed instead. Pointer returned by this call is guaranteed to be valid for entire bluetoothd lifetime and thus do not need to be refcounted.
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c
index fe8706bc..15a2571c 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -352,7 +352,7 @@ struct btd_adapter *btd_manager_register_adapter(int id, gboolean up)
return NULL;
}
- adapter = adapter_create(btd_get_dbus_connection(), id);
+ adapter = adapter_create(id);
if (!adapter)
return NULL;