diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-10-14 08:56:22 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-11 12:20:21 +0100 |
commit | 8fe1e8fd41ba872760f3c9241167488e4a506950 (patch) | |
tree | 43426f41d1a82d00912d80289589997f23f4cb04 /include/stdio.h | |
parent | 84b222987eea1a57308732c47a3006fecd6c8219 (diff) | |
download | barebox-8fe1e8fd41ba872760f3c9241167488e4a506950.tar.gz barebox-8fe1e8fd41ba872760f3c9241167488e4a506950.tar.xz |
console: fix return values of puts functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stdio.h b/include/stdio.h index a0d81d3b74..bfaeb6c075 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -17,12 +17,12 @@ int tstc(void); /* stdout */ void console_putc(unsigned int ch, const char c); int getc(void); -void console_puts(unsigned int ch, const char *s); +int console_puts(unsigned int ch, const char *s); void console_flush(void); -static inline void puts(const char *s) +static inline int puts(const char *s) { - console_puts(CONSOLE_STDOUT, s); + return console_puts(CONSOLE_STDOUT, s); } static inline void putchar(char c) |