summaryrefslogtreecommitdiffstats
path: root/lib/linklist.c
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-09-12 12:25:27 +0200
committerF. Aragon <paco@voltanet.io>2018-09-12 12:27:38 +0200
commitc683bd446c59dc09d4b19eb47718b014c433d900 (patch)
treed5f3da3a4390fbbc45ac9f9e170fed0ba2d170b7 /lib/linklist.c
parentMerge pull request #2944 from thbtcllt/master (diff)
downloadfrr-c683bd446c59dc09d4b19eb47718b014c433d900.tar.xz
frr-c683bd446c59dc09d4b19eb47718b014c433d900.zip
lib vtysh zebra: variable shadowing fixes
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib/linklist.c')
-rw-r--r--lib/linklist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/linklist.c b/lib/linklist.c
index effd384e4..bee9d05a2 100644
--- a/lib/linklist.c
+++ b/lib/linklist.c
@@ -318,8 +318,8 @@ void list_sort(struct list *list, int (*cmp)(const void **, const void **))
qsort(items, n, sizeof(void *), realcmp);
- for (unsigned int i = 0; i < n; ++i)
- listnode_add(list, items[i]);
+ for (unsigned int j = 0; j < n; ++j)
+ listnode_add(list, items[j]);
XFREE(MTYPE_TMP, items);
}