From 9a836f1dbf90f07c2fc4151166f7456879d675b0 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 25 Jan 2011 04:16:01 +0100 Subject: Making the compiler a bitch by enabling warnings in full, fixing a few warnings, and making the board actually do slightly something. --- os/src/sprintf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'os/src/sprintf.c') 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 +#include #include 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; } -- cgit v1.2.3