diff options
author | Wolfgang Denk <wd@denx.de> | 2010-06-20 17:14:14 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-07-04 23:51:49 +0200 |
commit | d9c27253ce333e2086b2d758b42dc3ecb8b34c3d (patch) | |
tree | 259c764843e1109f07f3f82e4b6c34a8d1772775 /include/exports.h | |
parent | c0c15379e22b1006806c9219934415b84e8d338a (diff) | |
download | u-boot-imx-d9c27253ce333e2086b2d758b42dc3ecb8b34c3d.zip u-boot-imx-d9c27253ce333e2086b2d758b42dc3ecb8b34c3d.tar.gz u-boot-imx-d9c27253ce333e2086b2d758b42dc3ecb8b34c3d.tar.bz2 |
Make *printf() return "int" instead of "void"
Change the return type of the *printf() functions to the standard
"int"; no changes are needed but returning the already available
length count.
This will save a few additional strlen() calls later...
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/exports.h')
-rw-r--r-- | include/exports.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exports.h b/include/exports.h index c3a5d2f..9588bc9 100644 --- a/include/exports.h +++ b/include/exports.h @@ -11,14 +11,14 @@ int getc(void); int tstc(void); void putc(const char); void puts(const char*); -void printf(const char* fmt, ...); +int printf(const char* fmt, ...); void install_hdlr(int, interrupt_handler_t*, void*); void free_hdlr(int); void *malloc(size_t); void free(void*); void __udelay(unsigned long); unsigned long get_timer(unsigned long); -void vprintf(const char *, va_list); +int vprintf(const char *, va_list); void do_reset (void); unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base); char *getenv (char *name); |