Changeset bd2fab3f in rtems


Ignore:
Timestamp:
May 29, 2003, 7:08:53 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
a07f5b10
Parents:
8751d121
Message:

2003-05-29 Joel Sherrill <joel@…>

  • psx02/init.c, psx04/init.c, psx13/test.c, psxchroot01/test.c, psxhdrs/pthread07.c, psxmsgq01/init.c, psxreaddir/test.c, psxtimer/psxtimer.c: Removed warnings.
Location:
c/src/tests/psxtests
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/ChangeLog

    r8751d121 rbd2fab3f  
     12003-05-29      Joel Sherrill <joel@OARcorp.com>
     2
     3        * psx02/init.c, psx04/init.c, psx13/test.c, psxchroot01/test.c,
     4        psxhdrs/pthread07.c, psxmsgq01/init.c, psxreaddir/test.c,
     5        psxtimer/psxtimer.c: Removed warnings.
     6
    172003-05-27      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • c/src/tests/psxtests/psx02/init.c

    r8751d121 rbd2fab3f  
    2424  printf(
    2525    "Signal: %d caught by 0x%x (%d)\n",
    26     signo,
    27     pthread_self(),
     26    (int) signo,
     27    (unsigned int) pthread_self(),
    2828    Signal_count
    2929  );
     
    8787  status = sigpending( &pending_set );
    8888  assert( !status );
    89   printf( "Init: Signals pending 0x%08x\n", pending_set );
     89  printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
    9090 
    9191 
     
    9696  status = sigpending( &pending_set );
    9797  assert( !status );
    98   printf( "Init: Signals pending 0x%08x\n", pending_set );
     98  printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
    9999 
    100100  printf( "Init: Unblock SIGUSR1\n" );
  • c/src/tests/psxtests/psx04/init.c

    r8751d121 rbd2fab3f  
    7878  status = sigemptyset( &act.sa_mask );
    7979  assert( !status );
    80   printf( "Init: sigemptyset -  set= 0x%08x\n", act.sa_mask );
     80  printf( "Init: sigemptyset -  set= 0x%08x\n", (unsigned int) act.sa_mask );
    8181
    8282  /* test sigfillset following the above sigemptyset */
     
    8484  status = sigfillset( &act.sa_mask );
    8585  assert( !status );
    86   printf( "Init: sigfillset -  set= 0x%08x\n", act.sa_mask );
     86  printf( "Init: sigfillset -  set= 0x%08x\n", (unsigned int) act.sa_mask );
    8787
    8888  /* test sigdelset */
     
    9090  status = sigdelset( &act.sa_mask, SIGUSR1 );
    9191  assert( !status );
    92   printf( "Init: sigdelset - delete SIGUSR1 set= 0x%08x\n", act.sa_mask );
     92  printf( "Init: sigdelset - delete SIGUSR1 set= 0x%08x\n",
     93      (unsigned int) act.sa_mask );
    9394
    9495  /* test sigismember - FALSE */
     
    167168  status = sigpending( &pending_set );
    168169  assert( !status );
    169   printf( "Init: Signals pending 0x%08x\n", pending_set );
     170  printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
    170171 
    171172  puts( "Init: send SIGUSR1 to process" );
     
    175176  status = sigpending( &pending_set );
    176177  assert( !status );
    177   printf( "Init: Signals pending 0x%08x\n", pending_set );
     178  printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
    178179 
    179180  puts( "Init: Unblock SIGUSR1" );
     
    195196  status = sigpending( &pending_set );
    196197  assert( !status );
    197   printf( "Init: Signals pending 0x%08x\n", pending_set );
     198  printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
    198199
    199200  puts( "Init: sleep so the other task can block" );
     
    209210  status = sigpending( &pending_set );
    210211  assert( !status );
    211   printf( "Init: Signals pending 0x%08x\n", pending_set );
     212  printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
    212213
    213214  puts( "Init: sleep so the other task can catch signal" );
     
    273274  puts( "Init: Block SIGUSR1 and SIGUSR2 only" );
    274275  status = pthread_sigmask( SIG_SETMASK, &mask, &oset );
    275   printf( "Init: Previous blocked set was 0x%08x\n", oset );
     276  printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset );
    276277  assert( !status );
    277278
     
    279280 
    280281  status = pthread_sigmask( 0, NULL, &oset );
    281   printf( "Init: Current blocked set is 0x%08x\n", oset );
     282  printf( "Init: Current blocked set is 0x%08x\n", (unsigned int) oset );
    282283  assert( !status );
    283284
     
    289290  puts( "Init: Unblock all signals" );
    290291  status = pthread_sigmask( SIG_SETMASK, &mask, &oset );
    291   printf( "Init: Previous blocked set was 0x%08x\n", oset );
     292  printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset );
    292293  assert( !status );
    293294
  • c/src/tests/psxtests/psx13/test.c

    r8751d121 rbd2fab3f  
    3434
    3535#include <stdio.h>
     36#include <unistd.h>
    3637
    3738#include <pmacros.h>
  • c/src/tests/psxtests/psxchroot01/test.c

    r8751d121 rbd2fab3f  
    6767#endif
    6868{
    69   int fd;
    70   int i;
    7169  int status;
    72   struct stat s;
    7370
    7471/*
  • c/src/tests/psxtests/psxhdrs/pthread07.c

    r8751d121 rbd2fab3f  
    2525  for ( ; ; )
    2626    ;
     27  return NULL;
    2728}
    2829
  • c/src/tests/psxtests/psxmsgq01/init.c

    r8751d121 rbd2fab3f  
    676676void verify_open_functionality()
    677677{
     678#if 0
    678679  mqd_t           n_mq;
     680#endif
    679681
    680682  Start_Test( "mq_open functionality" );
     
    766768  }
    767769
    768   printf("Init: %d sec %d us\n", tv3.tv_sec, tv3.tv_usec );
     770  printf("Init: %ld sec %ld us\n", (long)tv3.tv_sec, (long)tv3.tv_usec );
    769771
    770772  if ( is_blocking ) /* non-blocking queue */
     
    818820  if ( is_blocking )
    819821    fatal_posix_service_status( errno, ETIMEDOUT,  "errno ETIMEDOUT");
    820   printf( "Init: %d sec %d us\n", tv3.tv_sec, tv3.tv_usec );
     822  printf( "Init: %ld sec %ld us\n", (long)tv3.tv_sec, (long)tv3.tv_usec );
    821823
    822824  if ( is_blocking )
  • c/src/tests/psxtests/psxreaddir/test.c

    r8751d121 rbd2fab3f  
    157157}
    158158
    159 int compare_ascending( struct dirent **a, struct dirent **b )
     159int compare_ascending(const struct dirent **a, const struct dirent **b )
    160160{
    161161   int i;
     
    181181}
    182182
    183 int test_across_mount()
     183void test_across_mount()
    184184{
    185185  rtems_filesystem_mount_table_entry_t *mt_entry;
  • c/src/tests/psxtests/psxtimer/psxtimer.c

    r8751d121 rbd2fab3f  
    9696     printf("Executing task A %s", ctime(&clock));
    9797   }
    98  }
     98   return NULL;
     99}
    99100
    100101/* task B  */
     
    153154     x++;
    154155   }
     156   return NULL;
    155157}
    156158
     
    210212     pthread_mutex_unlock (&data.mutex);
    211213   }
    212  }
     214   return NULL;
     215}
    213216
    214217
Note: See TracChangeset for help on using the changeset viewer.