summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/stdio/vsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/stdio/vsprintf.c')
-rw-r--r--testsuites/psxtests/psxhdrs/stdio/vsprintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdio/vsprintf.c b/testsuites/psxtests/psxhdrs/stdio/vsprintf.c
index d6a5a0f7bb..a57aea8adf 100644
--- a/testsuites/psxtests/psxhdrs/stdio/vsprintf.c
+++ b/testsuites/psxtests/psxhdrs/stdio/vsprintf.c
@@ -37,14 +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;
char string[128];
int result;
+ va_start(ap, arg1);
result = vsprintf( string, " %d %99s ", ap );
return result;