summaryrefslogtreecommitdiff
path: root/plugins/bluetooth.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-07-25 16:24:33 +0200
committerMarcel Holtmann <marcel@holtmann.org>2011-07-26 01:21:59 +0200
commit61e8631af19a43d4fb307c197c00bb467671b11b (patch)
treeb71b75b3d62428888b6dce418cf01e1dff7a4af4 /plugins/bluetooth.c
parent7a74f89c8faf0834aa7de8d7724b868754632de3 (diff)
downloadconnman-61e8631af19a43d4fb307c197c00bb467671b11b.tar.gz
connman-61e8631af19a43d4fb307c197c00bb467671b11b.tar.bz2
connman-61e8631af19a43d4fb307c197c00bb467671b11b.zip
device: Change signature of connman_device_remove_network()
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r--plugins/bluetooth.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index ccc5e9bb..65a9d5d3 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -549,7 +549,7 @@ static gboolean adapter_changed(DBusConnection *connection,
static gboolean device_removed(DBusConnection *connection,
DBusMessage *message, void *user_data)
{
- const char *network_path, *identifier;
+ const char *network_path;
struct connman_network *network;
struct connman_device *device;
DBusMessageIter iter;
@@ -569,11 +569,9 @@ static gboolean device_removed(DBusConnection *connection,
if (device == NULL)
return TRUE;
- identifier = connman_network_get_identifier(network);
-
g_hash_table_remove(bluetooth_networks, network_path);
- connman_device_remove_network(device, identifier);
+ connman_device_remove_network(device, network);
return TRUE;
}