[gnome-bluetooth] lib: Clean ups to bluetooth_client_setup_device()



commit eb4eaed1c984b7667ed015fc911d9314cd5f06e7
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Dec 3 16:35:18 2013 +0100

    lib: Clean ups to bluetooth_client_setup_device()

 lib/bluetooth-client.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index db799ca..1444305 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1416,7 +1416,7 @@ bluetooth_client_setup_device (BluetoothClient          *client,
 {
        BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
        CreateDeviceData *devdata;
-       GDBusProxy *adapter, *device;
+       GDBusProxy *device;
        GtkTreeIter iter, adapter_iter;
        gboolean paired;
        GError *err = NULL;
@@ -1431,10 +1431,12 @@ bluetooth_client_setup_device (BluetoothClient          *client,
                            BLUETOOTH_COLUMN_PAIRED, &paired, -1);
 
        if (paired != FALSE &&
-                       gtk_tree_model_iter_parent (GTK_TREE_MODEL(priv->store),
-                                                   &adapter_iter, &iter)) {
+           gtk_tree_model_iter_parent (GTK_TREE_MODEL(priv->store), &adapter_iter, &iter)) {
+               GDBusProxy *adapter;
+
                gtk_tree_model_get (GTK_TREE_MODEL(priv->store), &adapter_iter,
-                                   BLUETOOTH_COLUMN_PROXY, &adapter, -1);
+                                   BLUETOOTH_COLUMN_PROXY, &adapter,
+                                   -1);
                adapter1_call_remove_device_sync (ADAPTER1 (adapter),
                                                  path,
                                                  NULL, &err);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]