aboutsummaryrefslogtreecommitdiff
path: root/include/exports.h
diff options
context:
space:
mode:
authorWolfgang Denk2010-06-20 17:14:14 +0200
committerWolfgang Denk2010-07-04 23:51:49 +0200
commitd9c27253ce333e2086b2d758b42dc3ecb8b34c3d (patch)
tree259c764843e1109f07f3f82e4b6c34a8d1772775 /include/exports.h
parentc0c15379e22b1006806c9219934415b84e8d338a (diff)
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 c3a5d2f32e7..9588bc94e43 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);