diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/stdio/vdprintf.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/stdio/vdprintf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdio/vdprintf.c b/testsuites/psxtests/psxhdrs/stdio/vdprintf.c index dac50275b1..43dfa1e4b8 100644 --- a/testsuites/psxtests/psxhdrs/stdio/vdprintf.c +++ b/testsuites/psxtests/psxhdrs/stdio/vdprintf.c @@ -37,13 +37,15 @@ #include <stdio.h> #include <stdarg.h> -int test( void ); +int test( int arg1, ... ); -int test( void ) +int test( int arg1, ... ) { va_list ap; int result; + va_start(ap, arg1); + result = vdprintf( 2, "%d", ap ); return result; |