summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-10-15 08:22:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-21 22:21:22 +0200
commiteff51304a72ae260c9398d89d26ee01d518de904 (patch)
tree955278d343682147eafd133515084b93b00438d0 /lib
parent246c053c7ab755bd0c2e8be66f840518115cecb9 (diff)
downloadbarebox-eff51304a72ae260c9398d89d26ee01d518de904.tar.gz
barebox-eff51304a72ae260c9398d89d26ee01d518de904.tar.xz
readline: sparse fixes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/readline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/readline.c b/lib/readline.c
index b82150e355..b90de77fd7 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; \
} \