diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-25 04:16:01 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-25 04:16:01 +0100 |
commit | 9a836f1dbf90f07c2fc4151166f7456879d675b0 (patch) | |
tree | bc7eec0850c1249c32465b41607a293c50eed44e /os/src/sprintf.c | |
parent | fcef19baed9cb5b040a3df0505e57710df20ee43 (diff) |
Making the compiler a bitch by enabling warnings in full, fixing a few warnings, and making the board actually do slightly something.
Diffstat (limited to 'os/src/sprintf.c')
-rw-r--r-- | os/src/sprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/src/sprintf.c b/os/src/sprintf.c index 76ea9a2..30d27b3 100644 --- a/os/src/sprintf.c +++ b/os/src/sprintf.c @@ -1,4 +1,5 @@ #include <reent.h> +#include <stdio.h> #include <stdarg.h> int sprintf(char * str, const char * fmt, ...) { @@ -7,4 +8,5 @@ int sprintf(char * str, const char * fmt, ...) { va_start(ap, fmt); r = _vsprintf_r(_impure_ptr, str, fmt, ap); va_end(ap); + return r; } |