connman-dbus: Fix warnings
diff --git a/common/connman-dbus.c b/common/connman-dbus.c
index 8bf875b..b5a635c 100644
--- a/common/connman-dbus.c
+++ b/common/connman-dbus.c
@@ -221,13 +221,12 @@
gboolean ethernet_enabled_prev, ethernet_enabled = FALSE;
gboolean wifi_enabled_prev, wifi_enabled = FALSE;
gchar **tech = g_value_get_boxed (value);
- gint i;
+ guint i;
if (value == NULL)
return;
- for (i = 0; i < g_strv_length (tech); i++)
- {
+ for (i = 0; i < g_strv_length(tech); i++) {
if (g_str_equal("ethernet", *(tech + i)))
ethernet_enabled = TRUE;
else if (g_str_equal ("wifi", *(tech + i)))
@@ -255,10 +254,9 @@
gboolean ethernet_enabled = FALSE;
gboolean wifi_enabled = FALSE;
gchar **tech = g_value_get_boxed (value);
- gint i;
+ guint i;
- for (i = 0; i < g_strv_length (tech); i++)
- {
+ for (i = 0; i < g_strv_length (tech); i++) {
if (g_str_equal("ethernet", *(tech + i)))
ethernet_enabled = TRUE;
else if (g_str_equal ("wifi", *(tech + i)))
@@ -392,7 +390,6 @@
for (list = new_list; list; list = list->next) {
gchar *path = list->data;
DBusGProxy *proxy;
- GtkTreeIter iter;
DBG("new path %s", path);