Usermode/libc - Fixed compilation issues in printf
authorJohn Hodge <[email protected]>
Thu, 14 Feb 2013 02:04:39 +0000 (10:04 +0800)
committerJohn Hodge <[email protected]>
Thu, 14 Feb 2013 02:04:39 +0000 (10:04 +0800)
Usermode/Libraries/libc.so_src/printf.c

index 3419cc7..869ba22 100644 (file)
@@ -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)

UCC git Repository :: git.ucc.asn.au