[PATCH 03/42] readline: sparse fixes

Sascha Hauer s.hauer at pengutronix.de
Tue Oct 19 08:54:51 EDT 2010


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 lib/readline.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/readline.c b/lib/readline.c
index b82150e..b90de77 100644
--- a/lib/readline.c
+++ b/lib/readline.c
@@ -120,10 +120,10 @@ static char* hist_next(void)
 
 #define ERASE_TO_EOL() {				\
 	if (num < eol_num) {				\
-		int tmp;				\
-		for (tmp = num; tmp < eol_num; tmp++)	\
+		int t;					\
+		for (t = num; t < eol_num; t++)		\
 			getcmd_putch(' ');		\
-		while (tmp-- > num)			\
+		while (t-- > num)			\
 			getcmd_putch(CTL_BACKSPACE);	\
 		eol_num = num;				\
 	}						\
-- 
1.7.2.3




More information about the barebox mailing list