diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-11 12:25:53 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-11 16:19:48 +0100 |
commit | 1533f6b7b3300cc0fb99e98e16b2594236b81cd6 (patch) | |
tree | 95e5ec43934e444488fdc7554e4e8321d6b64c09 /include/stdio.h | |
parent | e57f57a3d0e6aab2bfb16ec258aa49daab1e8fe2 (diff) | |
download | barebox-1533f6b7b3300cc0fb99e98e16b2594236b81cd6.tar.gz barebox-1533f6b7b3300cc0fb99e98e16b2594236b81cd6.tar.xz |
fix fprintf prototype and return value
The puts functions now properly return the number of characters
written. With this we can also fix fprintf.
Also, remove never reached return in fputs.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index bfaeb6c075..4901bc7182 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -54,7 +54,7 @@ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args); #define stderr 2 #define MAX_FILES 128 -void fprintf(int file, const char *fmt, ...) __attribute__ ((format(__printf__, 2, 3))); +int fprintf(int file, const char *fmt, ...) __attribute__ ((format(__printf__, 2, 3))); int fputs(int file, const char *s); int fputc(int file, const char c); int ftstc(int file); |