From: John Hodge Date: Thu, 14 Feb 2013 02:04:39 +0000 (+0800) Subject: Usermode/libc - Fixed compilation issues in printf X-Git-Tag: rel0.15~575 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f3e1eb04c7af39e90eebf712ca5bf346cb86045b;p=tpg%2Facess2.git Usermode/libc - Fixed compilation issues in printf --- diff --git a/Usermode/Libraries/libc.so_src/printf.c b/Usermode/Libraries/libc.so_src/printf.c index 3419cc72..869ba227 100644 --- a/Usermode/Libraries/libc.so_src/printf.c +++ b/Usermode/Libraries/libc.so_src/printf.c @@ -111,7 +111,7 @@ EXPORT int _vcprintf_int(printf_putch_t putch_cb, void *putch_h, const char *for else break; } - while( c = *format++ ); + while( (c = *format++) ); // Padding length if( c == '*' ) { @@ -250,7 +250,6 @@ EXPORT int _vcprintf_int(printf_putch_t putch_cb, void *putch_h, const char *for // String case 's': p = va_arg(args, char*); - sprintf_puts: if(!p) p = "(null)"; //_SysDebug("vsnprintf: p = '%s'", p); if(precision >= 0)