summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/stdio/vsscanf.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2019-03-18 08:47:58 -0500
committerJoel Sherrill <joel@rtems.org>2019-03-25 16:27:44 -0500
commit127ee3a55289e8cce04c9ee6d29519d841c72d9b (patch)
tree161f8ec45cc67c90e165f3f4adab5d0c923be994 /testsuites/psxtests/psxhdrs/stdio/vsscanf.c
parentlibfs/src/pipe/fifo.c: Fix warning. (diff)
downloadrtems-127ee3a55289e8cce04c9ee6d29519d841c72d9b.tar.bz2
psxhdrs/stdio/v*.c: Fix warnings in varargs tests
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxhdrs/stdio/vsscanf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdio/vsscanf.c b/testsuites/psxtests/psxhdrs/stdio/vsscanf.c
index 0bb9d35355..dffcc263fd 100644
--- a/testsuites/psxtests/psxhdrs/stdio/vsscanf.c
+++ b/testsuites/psxtests/psxhdrs/stdio/vsscanf.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, ... )
{
char *tokenstring = "15 12 14";
va_list ap;
int result;
+ va_start(ap, arg1);
result = vsscanf( tokenstring, " %d %99s ", ap );
return result;