summaryrefslogtreecommitdiff
path: root/plugins/bluetooth.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-07-22 15:47:47 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2013-07-23 09:03:36 +0200
commitad7abb59da18f9ae5c975a5c6aa25563264f3ef8 (patch)
treea8ae2ab988a83488e8dc719628dc5e3128923cd8 /plugins/bluetooth.c
parentb89fa6d12ca7fd9b1fba558df8ef9f19d3d8eecf (diff)
downloadconnman-ad7abb59da18f9ae5c975a5c6aa25563264f3ef8.tar.gz
plugins: Whitespace cleanup
The coccinelle patch introduces some whitespace violiacense. Fix up most errors and warnings reported by checkpatch.
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r--plugins/bluetooth.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index f373a346..7fcf3fd8 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -105,6 +105,7 @@ static bool proxy_get_nap(GDBusProxy *proxy)
dbus_message_iter_next(&value);
}
+
return false;
}
@@ -241,7 +242,9 @@ static int bluetooth_pan_connect(struct connman_network *network)
path = g_dbus_proxy_get_path(pan->btnetwork_proxy);
- if (!g_dbus_proxy_method_call(pan->btnetwork_proxy, "Connect", pan_connect_append, pan_connect_cb, g_strdup(path), g_free))
+ if (!g_dbus_proxy_method_call(pan->btnetwork_proxy, "Connect",
+ pan_connect_append, pan_connect_cb,
+ g_strdup(path), g_free))
return -EIO;
connman_network_set_associating(pan->network, true);
@@ -283,7 +286,8 @@ static int bluetooth_pan_disconnect(struct connman_network *network)
path = g_dbus_proxy_get_path(pan->btnetwork_proxy);
- if (!g_dbus_proxy_method_call(pan->btnetwork_proxy, "Disconnect", NULL, pan_disconnect_cb, g_strdup(path), g_free))
+ if (!g_dbus_proxy_method_call(pan->btnetwork_proxy, "Disconnect",
+ NULL, pan_disconnect_cb, g_strdup(path), g_free))
return -EIO;
return -EINPROGRESS;
@@ -637,7 +641,7 @@ static void tethering_create_cb(DBusMessage *message, void *user_data)
const char *dbus_error = dbus_message_get_error_name(message);
DBG("%s tethering failed: %s",
- tethering->enable ? "enable": "disable",
+ tethering->enable ? "enable" : "disable",
dbus_error);
return;
}
@@ -843,7 +847,7 @@ static int bluetooth_tech_set_tethering(struct connman_technology *technology,
i++;
}
- DBG("%s %d device(s)", enabled ? "enabled": "disabled", i);
+ DBG("%s %d device(s)", enabled ? "enabled" : "disabled", i);
if (i == 0)
return -ENODEV;