summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/stdio/vfprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/stdio/vfprintf.c')
-rw-r--r--testsuites/psxtests/psxhdrs/stdio/vfprintf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdio/vfprintf.c b/testsuites/psxtests/psxhdrs/stdio/vfprintf.c
index 0ad6bcdbdc..3ed24b3570 100644
--- a/testsuites/psxtests/psxhdrs/stdio/vfprintf.c
+++ b/testsuites/psxtests/psxhdrs/stdio/vfprintf.c
@@ -37,14 +37,16 @@
#include <stdio.h>
#include <stdarg.h>
-int test( void );
+int test( int arg1, ... );
-int test( void )
+int test( int arg1, ... )
{
FILE *stream;
va_list ap;
int result;
+ va_start(ap, arg1);
+
stream = fopen( "myfile.dat", "w" );
result = vfprintf( stream, "%d", ap );