From f3e1eb04c7af39e90eebf712ca5bf346cb86045b Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 14 Feb 2013 10:04:39 +0800 Subject: [PATCH] Usermode/libc - Fixed compilation issues in printf --- Usermode/Libraries/libc.so_src/printf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.20.1