[PATCH] lib/readline.c: fix unused-but-set-variable gcc warning

Antony Pavlov antonynpavlov at gmail.com
Sun Jul 3 16:53:02 EDT 2011


---
 lib/readline.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/lib/readline.c b/lib/readline.c
index a3e1de9..5717a17 100644
--- a/lib/readline.c
+++ b/lib/readline.c
@@ -176,7 +176,6 @@ int readline(const char *prompt, char *buf, int len)
 {
 	unsigned long num = 0;
 	unsigned long eol_num = 0;
-	unsigned long rlen;
 	unsigned wlen;
 	int ichar;
 	int insert = 1;
@@ -191,7 +190,6 @@ int readline(const char *prompt, char *buf, int len)
 	puts (prompt);
 
 	while (1) {
-		rlen = 1;
 		ichar = read_key();
 
 		if ((ichar == '\n') || (ichar == '\r')) {
-- 
1.7.5.4




More information about the barebox mailing list