summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-13 10:38:52 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-11-13 10:38:52 +0000
commit63e731f8c7d9a7c982bab50a0b14728af13c2557 (patch)
tree58472fba76f55fb25b4c21a8f032ea6c790c6d2c
parent9d6b62ec87b42969204c1a5fe1dd67b8a5f5c6c7 (diff)
- silence shadow warning
-rw-r--r--libc/inet/ifaddrs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/inet/ifaddrs.c b/libc/inet/ifaddrs.c
index 775d311d4..46be5f6b5 100644
--- a/libc/inet/ifaddrs.c
+++ b/libc/inet/ifaddrs.c
@@ -330,7 +330,7 @@ __netlink_open (struct netlink_handle *h)
that a RTM_NEWADDR index is not known to this map. */
static int
internal_function
-map_newlink (int index, struct ifaddrs_storage *ifas, int *map, int max)
+map_newlink (int idx, struct ifaddrs_storage *ifas, int *map, int max)
{
int i;
@@ -338,12 +338,12 @@ map_newlink (int index, struct ifaddrs_storage *ifas, int *map, int max)
{
if (map[i] == -1)
{
- map[i] = index;
+ map[i] = idx;
if (i > 0)
ifas[i - 1].ifa.ifa_next = &ifas[i].ifa;
return i;
}
- else if (map[i] == index)
+ else if (map[i] == idx)
return i;
}
/* This should never be reached. If this will be reached, we have