--- src/device.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/device.c b/src/device.c index 75fa7f7..0c2b1f1 100644 --- a/src/device.c +++ b/src/device.c @@ -498,9 +498,9 @@ enum connman_device_type connman_device_get_type(struct connman_device *device) * * Set index number of device */ -void connman_device_set_index(struct connman_device *device, int index) +void connman_device_set_index(struct connman_device *device, int ifindex) { - device->index = index; + device->index = ifindex; } /** @@ -1211,19 +1211,19 @@ static void cleanup_devices(void) for (i = 0; interfaces[i] != NULL; i++) { connman_bool_t filtered; - int index; + int ifindex; filtered = __connman_device_isfiltered(interfaces[i]); if (filtered == TRUE) continue; - index = connman_inet_ifindex(interfaces[i]); - if (index < 0) + ifindex = connman_inet_ifindex(interfaces[i]); + if (ifindex < 0) continue; - DBG("cleaning up %s index %d", interfaces[i], index); + DBG("cleaning up %s index %d", interfaces[i], ifindex); - connman_inet_ifdown(index); + connman_inet_ifdown(ifindex); /* * ConnMan will turn the interface UP automatically so -- 1.7.9.5 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman