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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user