diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-12-18 11:26:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-12-18 16:44:54 +0100 |
commit | 73108301d4c4028b92f6a1ae0e4337dd71a1dc8e (patch) | |
tree | dd1d7929fc4460985abf8ed87cc9193c27bf8bd3 /lib/readline.c | |
parent | 8fc2d570246fa6f42e03551faab176b706991a0c (diff) | |
download | barebox-73108301d4c4028b92f6a1ae0e4337dd71a1dc8e.tar.gz barebox-73108301d4c4028b92f6a1ae0e4337dd71a1dc8e.tar.xz |
Remove unnecessary casts in key defines
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/readline.c')
-rw-r--r-- | lib/readline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/readline.c b/lib/readline.c index 750da3b59c..b82150e355 100644 --- a/lib/readline.c +++ b/lib/readline.c @@ -17,8 +17,8 @@ #define MAX_CMDBUF_SIZE 256 #define CTL_BACKSPACE ('\b') -#define DEL ((char)255) -#define DEL7 ((char)127) +#define DEL 255 +#define DEL7 127 #define CREAD_HIST_CHAR ('!') #define getcmd_putch(ch) putchar(ch) @@ -178,7 +178,7 @@ int readline(const char *prompt, char *buf, int len) unsigned long eol_num = 0; unsigned long rlen; unsigned long wlen; - unsigned char ichar; + int ichar; int insert = 1; int rc = 0; #ifdef CONFIG_AUTO_COMPLETE |