---
 plugins/dundee.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/plugins/dundee.c b/plugins/dundee.c
index 0dae0c9..e5813a9 100644
--- a/plugins/dundee.c
+++ b/plugins/dundee.c
@@ -421,7 +421,7 @@ static void extract_settings(DBusMessageIter *array,
        char *address = NULL, *gateway = NULL;
        char *nameservers = NULL;
        const char *interface = NULL;
-       int index = -1;
+       int ifindex = -1;
 
        if (dbus_message_iter_get_arg_type(array) != DBUS_TYPE_ARRAY)
                return;
@@ -443,11 +443,11 @@ static void extract_settings(DBusMessageIter *array,
 
                        DBG("Interface %s", interface);
 
-                       index = connman_inet_ifindex(interface);
+                       ifindex = connman_inet_ifindex(interface);
 
-                       DBG("index %d", index);
+                       DBG("index %d", ifindex);
 
-                       if (index < 0)
+                       if (ifindex < 0)
                                break;
                } else if (g_str_equal(key, "Address") == TRUE) {
                        dbus_message_iter_get_basic(&value, &val);
@@ -470,14 +470,14 @@ static void extract_settings(DBusMessageIter *array,
                dbus_message_iter_next(&dict);
        }
 
-       if (index < 0)
+       if (ifindex < 0)
                goto out;
 
        info->address = connman_ipaddress_alloc(CONNMAN_IPCONFIG_TYPE_IPV4);
        if (info->address == NULL)
                goto out;
 
-       info->index = index;
+       info->index = ifindex;
        connman_ipaddress_set_ipv4(info->address, address, NULL, gateway);
 
        info->nameservers = nameservers;
-- 
1.7.9.5

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to