From ed7abaf0968a850e262a2ae8f5a8e0b41aaa5879 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 1 Dec 2012 10:53:03 -0600 Subject: Would the compiler like to warn me about declaring two variables with the same name in the same function? No? Carry on then... --- toys/posix/expand.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'toys/posix/expand.c') diff --git a/toys/posix/expand.c b/toys/posix/expand.c index 922f5e67..d1b82a7c 100644 --- a/toys/posix/expand.c +++ b/toys/posix/expand.c @@ -44,30 +44,30 @@ static void expand_file(int fd, char *name) } if (!len) break; for (i=0; i x) { - len = TT.tab[stop] - x; + width = TT.tab[stop] - x; break; } else stop++; } - xprintf("%*c", len, ' '); + xprintf("%*c", width, ' '); } - x += len; + x += width; } } } -- cgit v1.2.3