summaryrefslogtreecommitdiffstats
path: root/lib/readline.c
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-21 09:09:06 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-21 09:09:06 +0200
commit0dd68e795ed43c6826a110e3a46696c6473fbb42 (patch)
treeec890814857e7421022a72511d6db4ccfbc02e2f /lib/readline.c
parentc36aba610128168d32b04393dd14b2f8e35518cf (diff)
downloadbarebox-0dd68e795ed43c6826a110e3a46696c6473fbb42.tar.gz
barebox-0dd68e795ed43c6826a110e3a46696c6473fbb42.tar.xz
- putc is now putchar for better standard conformity
- make printf return int
Diffstat (limited to 'lib/readline.c')
-rw-r--r--lib/readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/readline.c b/lib/readline.c
index ab0a46a8c3..c7aa287c77 100644
--- a/lib/readline.c
+++ b/lib/readline.c
@@ -21,7 +21,7 @@ extern char console_buffer[CONFIG_CBSIZE]; /* console I/O buffer */
#define DEL7 ((char)127)
#define CREAD_HIST_CHAR ('!')
-#define getcmd_putch(ch) putc(ch)
+#define getcmd_putch(ch) putchar(ch)
#define getcmd_getch() getc()
#define getcmd_cbeep() getcmd_putch('\a')
@@ -189,7 +189,7 @@ int readline(const char *prompt, char *buf, int len)
ichar = read_key();
if ((ichar == '\n') || (ichar == '\r')) {
- putc('\n');
+ putchar('\n');
break;
}