summaryrefslogtreecommitdiffstats
path: root/include/exports.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-06-20 17:14:14 +0200
committerWolfgang Denk <wd@denx.de>2010-07-04 23:51:49 +0200
commitd9c27253ce333e2086b2d758b42dc3ecb8b34c3d (patch)
tree259c764843e1109f07f3f82e4b6c34a8d1772775 /include/exports.h
parentc0c15379e22b1006806c9219934415b84e8d338a (diff)
downloadblackbird-obmc-uboot-d9c27253ce333e2086b2d758b42dc3ecb8b34c3d.tar.gz
blackbird-obmc-uboot-d9c27253ce333e2086b2d758b42dc3ecb8b34c3d.zip
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exports.h b/include/exports.h
index c3a5d2f32e..9588bc94e4 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);
OpenPOWER on IntegriCloud