---
 src/wispr.c |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/wispr.c b/src/wispr.c
index 9412f1e..9d4de6d 100644
--- a/src/wispr.c
+++ b/src/wispr.c
@@ -859,26 +859,26 @@ int __connman_wispr_start(struct connman_service *service,
 {
        struct connman_wispr_portal_context *wp_context = NULL;
        struct connman_wispr_portal *wispr_portal = NULL;
-       int index;
+       int ifindex;
 
        DBG("service %p", service);
 
        if (wispr_portal_list == NULL)
                return -EINVAL;
 
-       index = __connman_service_get_index(service);
-       if (index < 0)
+       ifindex = __connman_service_get_index(service);
+       if (ifindex < 0)
                return -EINVAL;
 
        wispr_portal = g_hash_table_lookup(wispr_portal_list,
-                                       GINT_TO_POINTER(index));
+                                       GINT_TO_POINTER(ifindex));
        if (wispr_portal == NULL) {
                wispr_portal = g_try_new0(struct connman_wispr_portal, 1);
                if (wispr_portal == NULL)
                        return -ENOMEM;
 
                g_hash_table_replace(wispr_portal_list,
-                                       GINT_TO_POINTER(index), wispr_portal);
+                                       GINT_TO_POINTER(ifindex), wispr_portal);
        }
 
        if (type == CONNMAN_IPCONFIG_TYPE_IPV4)
@@ -911,18 +911,18 @@ int __connman_wispr_start(struct connman_service *service,
 
 void __connman_wispr_stop(struct connman_service *service)
 {
-       int index;
+       int ifindex;
 
        DBG("service %p", service);
 
        if (wispr_portal_list == NULL)
                return;
 
-       index = __connman_service_get_index(service);
-       if (index < 0)
+       ifindex = __connman_service_get_index(service);
+       if (ifindex < 0)
                return;
 
-       g_hash_table_remove(wispr_portal_list, GINT_TO_POINTER(index));
+       g_hash_table_remove(wispr_portal_list, GINT_TO_POINTER(ifindex));
 }
 
 int __connman_wispr_init(void)
-- 
1.7.9.5

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

Reply via email to