From 7fe96307ee288bd28a54ba4ddfa559a1cf07bb7f Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Thu, 13 Sep 2018 17:37:08 +0200 Subject: bgpd lib ospf6d pbrd tests zebra: shadowing fixes This fixes all remaining local variable shadowing cases Signed-off-by: F. Aragon --- lib/termtable.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/termtable.c') diff --git a/lib/termtable.c b/lib/termtable.c index 7bdb1ff873..4f5f9ff218 100644 --- a/lib/termtable.c +++ b/lib/termtable.c @@ -140,8 +140,8 @@ static struct ttable_cell *ttable_insert_row_va(struct ttable *tt, int i, int ncols = 0; /* count how many columns we have */ - for (int i = 0; format[i]; i++) - ncols += !!(format[i] == '|'); + for (int j = 0; format[j]; j++) + ncols += !!(format[j] == '|'); ncols++; if (tt->ncols == 0) @@ -459,7 +459,7 @@ char *ttable_dump(struct ttable *tt, const char *newline) memcpy(&buf[pos], left, lsize); pos += lsize; - for (size_t i = 0; i < width - lsize - rsize; i++) + for (size_t l = 0; l < width - lsize - rsize; l++) buf[pos++] = row[0].style.border.bottom; pos -= width - lsize - rsize; -- cgit v1.2.3