Changeset b7a1f9e in rtems for testsuites


Ignore:
Timestamp:
Dec 11, 2018, 8:30:59 AM (12 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a1eb0a5
Parents:
6179767
git-author:
Sebastian Huber <sebastian.huber@…> (12/11/18 08:30:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/11/18 08:42:17)
Message:

psxhdrs: Fix compile errors

Location:
testsuites/psxtests/psxhdrs/stdio
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxhdrs/stdio/vdprintf.c

    r6179767 rb7a1f9e  
    3131int test( void )
    3232{
    33   char *fmt1 = "%d";
     33  va_list ap;
    3434  int result;
    3535
    36   result = vdprintf( 2, fmt1, NULL );
     36  result = vdprintf( 2, "%d", ap );
    3737
    3838  return result;
  • testsuites/psxtests/psxhdrs/stdio/vfprintf.c

    r6179767 rb7a1f9e  
    3232{
    3333  FILE *stream;
    34   char *fmt1 = "%d";
     34  va_list ap;
    3535  int result;
    3636
    3737  stream = fopen( "myfile.dat", "w" );
    38   result = vfprintf( stream, fmt1, NULL );
     38  result = vfprintf( stream, "%d", ap );
    3939
    4040  return result;
  • testsuites/psxtests/psxhdrs/stdio/vfscanf.c

    r6179767 rb7a1f9e  
    3232{
    3333  FILE *stream;
    34   char *fmt1 = " %d %99s ";
     34  va_list ap;
    3535  int result;
    3636
    3737  stream = fopen( "myfile.dat", "w" );
    38   result = vfscanf( stream, fmt1, NULL );
     38  result = vfscanf( stream, " %d %99s ", ap );
    3939
    4040  return result;
  • testsuites/psxtests/psxhdrs/stdio/vprintf.c

    r6179767 rb7a1f9e  
    3131int test( void )
    3232{
    33   char *fmt1 = " %d %99s ";
     33  va_list ap;
    3434  int result;
    3535
    36   result = vprintf( fmt1, NULL );
     36  result = vprintf( " %d %99s ", ap );
    3737
    3838  return result;
  • testsuites/psxtests/psxhdrs/stdio/vscanf.c

    r6179767 rb7a1f9e  
    3131int test( void )
    3232{
    33   char *fmt1 = " %d %99s ";
     33  va_list ap;
    3434  int result;
    3535
    36   result = vscanf( fmt1, NULL );
     36  result = vscanf( " %d %99s ", ap );
    3737
    3838  return result;
  • testsuites/psxtests/psxhdrs/stdio/vsnprintf.c

    r6179767 rb7a1f9e  
    3131int test( void )
    3232{
    33   char *fmt1 = " %d %99s ";
     33  va_list ap;
    3434  char string[128];
    3535  int result;
    3636
    37   result = vsnprintf( string, sizeof(string), fmt1, NULL );
     37  result = vsnprintf( string, sizeof(string), " %d %99s ", ap );
    3838
    3939  return result;
  • testsuites/psxtests/psxhdrs/stdio/vsprintf.c

    r6179767 rb7a1f9e  
    3131int test( void )
    3232{
    33   char *fmt1 = " %d %99s ";
     33  va_list ap;
    3434  char string[128];
    3535  int result;
    3636
    37   result = vsprintf( string, fmt1, NULL );
     37  result = vsprintf( string, " %d %99s ", ap );
    3838
    3939  return result;
  • testsuites/psxtests/psxhdrs/stdio/vsscanf.c

    r6179767 rb7a1f9e  
    3232{
    3333  char *tokenstring = "15 12 14";
    34   char *fmt1 = " %d %99s ";
     34  va_list ap;
    3535  int result;
    3636
    37   result = vsscanf( tokenstring, fmt1, NULL );
     37  result = vsscanf( tokenstring, " %d %99s ", ap );
    3838
    3939  return result;
Note: See TracChangeset for help on using the changeset viewer.