Changeset 1055ce20 in rtems


Ignore:
Timestamp:
May 9, 2009, 9:24:06 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
b84f1fdc
Parents:
d0a263a
Message:

Fix most warnings.

Location:
testsuites/tmtests
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • testsuites/tmtests/tm01/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    3333  status = rtems_task_create(
    3434    Task_name[ 1 ],
    35     (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     35    (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    3636    RTEMS_MINIMUM_STACK_SIZE,
    3737    RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm02/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    3131int operation_count = OPERATION_COUNT;
    3232
    33 void test_init();
     33void test_init(void);
    3434
    3535rtems_task Init(
     
    4949}
    5050
    51 void test_init()
     51void test_init(void)
    5252{
    5353  rtems_status_code   status;
    54   uint32_t            index;
     54  int                 index;
    5555  rtems_task_priority priority;
    5656
     
    7272  directive_failed( status, "rtems_task_start of high task" );
    7373
    74   if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
    75     operation_count =  RTEMS_MAXIMUM_PRIORITY - 2;
     74  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u )
     75    operation_count = (int) (RTEMS_MAXIMUM_PRIORITY - 2u);
    7676  for ( index=2 ; index < operation_count ; index++ ) {
    7777    status = rtems_task_create(
  • testsuites/tmtests/tm03/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4040  status = rtems_task_create(
    4141    rtems_build_name( 'T', 'A', '1', ' ' ),
    42     RTEMS_MAXIMUM_PRIORITY - 1,
     42    RTEMS_MAXIMUM_PRIORITY - 1u,
    4343    RTEMS_MINIMUM_STACK_SIZE,
    4444    RTEMS_DEFAULT_MODES,
     
    6464  rtems_task_priority priority;
    6565
    66   priority = RTEMS_MAXIMUM_PRIORITY - 2;
     66  priority = RTEMS_MAXIMUM_PRIORITY - 2u;
    6767
    6868  status = rtems_semaphore_create(
     
    7575  directive_failed( status, "rtems_semaphore_create of SM1" );
    7676
    77   if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
    78     operation_count =  RTEMS_MAXIMUM_PRIORITY - 2;
     77  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u )
     78    operation_count =  (int) (RTEMS_MAXIMUM_PRIORITY - 2u);
    7979  for ( index = 2 ; index < operation_count ; index ++ ) {
    8080    rtems_task_create(
  • testsuites/tmtests/tm04/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515rtems_id         Semaphore_id;
    1616rtems_id         Task_id[OPERATION_COUNT+1];
    17 uint32_t   task_count;
     17uint32_t         task_count;
    1818rtems_id         Highest_id;
    1919
     
    2626);
    2727
     28rtems_task Highest_task(
     29  rtems_task_argument argument
     30);
     31
    2832rtems_task Restart_task(
    2933  rtems_task_argument argument
    3034);
    3135
    32 void test_init();
     36void test_init(void);
    3337
    3438rtems_task Init(
     
    4852}
    4953
    50 void test_init()
     54void test_init(void)
    5155{
    5256  rtems_status_code status;
    53   uint32_t    index;
     57  int               index;
    5458
    5559  task_count = OPERATION_COUNT;
     
    102106    status = rtems_task_set_priority(
    103107      RTEMS_CURRENT_PRIORITY,
    104       RTEMS_MAXIMUM_PRIORITY - 1,
     108      RTEMS_MAXIMUM_PRIORITY - 1u,
    105109      &old_priority
    106110    );
     
    215219    status = rtems_task_create(
    216220      name,
    217       RTEMS_MAXIMUM_PRIORITY - 4,
     221      RTEMS_MAXIMUM_PRIORITY - 4u,
    218222      RTEMS_MINIMUM_STACK_SIZE,
    219223      RTEMS_NO_PREEMPT,
     
    262266    status = rtems_task_create(
    263267      name,
    264       RTEMS_MAXIMUM_PRIORITY - 4,
     268      RTEMS_MAXIMUM_PRIORITY - 4u,
    265269      RTEMS_MINIMUM_STACK_SIZE,
    266270      RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm06/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4646{
    4747  rtems_status_code status;
    48   rtems_id id;
     48  rtems_id          id;
    4949
    5050  Task_restarted = OPERATION_COUNT;
     
    5252  status = rtems_task_create(
    5353    rtems_build_name( 'T', 'I', 'M', 'E' ),
    54     (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     54    (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    5555    RTEMS_MINIMUM_STACK_SIZE,
    5656    RTEMS_DEFAULT_MODES,
     
    9797    status = rtems_task_create(
    9898      rtems_build_name( 'T', 'I', 'M', 'E' ),
    99       RTEMS_MAXIMUM_PRIORITY - 1,
     99      RTEMS_MAXIMUM_PRIORITY - 1u,
    100100      RTEMS_MINIMUM_STACK_SIZE,
    101101      RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm07/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2727);
    2828
    29 void test_init();
     29void test_init(void);
    3030
    3131int operation_count = OPERATION_COUNT;
     
    4747}
    4848
    49 void test_init()
     49void test_init(void)
    5050{
    5151  rtems_status_code   status;
    5252  rtems_task_priority priority;
    5353  rtems_task_entry    task_entry;
    54   uint32_t      index;
     54  int                 index;
    5555
    56   priority = RTEMS_MAXIMUM_PRIORITY - 1;
     56  priority = RTEMS_MAXIMUM_PRIORITY - 1u;
    5757
    58   if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
    59     operation_count =  RTEMS_MAXIMUM_PRIORITY - 2;
     58  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u )
     59    operation_count =  (int) (RTEMS_MAXIMUM_PRIORITY - 2u);
    6060
    6161  for( index=0 ; index <= operation_count ; index++ ) {
  • testsuites/tmtests/tm08/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2121  rtems_task_argument argument
    2222);
    23 void test_init();
     23void test_init(void);
    2424
    2525rtems_task Init(
     
    3939}
    4040
    41 void test_init()
     41void test_init(void)
    4242{
    4343  rtems_status_code status;
     
    4545  status = rtems_task_create(
    4646    1,
    47     (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     47    (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    4848    RTEMS_MINIMUM_STACK_SIZE,
    4949    RTEMS_DEFAULT_MODES,
     
    5858  status = rtems_task_create(
    5959    1,
    60     RTEMS_MAXIMUM_PRIORITY - 1,
     60    RTEMS_MAXIMUM_PRIORITY - 1u,
    6161    RTEMS_MINIMUM_STACK_SIZE,
    6262    RTEMS_DEFAULT_MODES,
     
    107107      (void) rtems_task_set_priority(
    108108        Test_task_id,
    109         RTEMS_MAXIMUM_PRIORITY - 2,
     109        RTEMS_MAXIMUM_PRIORITY - 2u,
    110110        &old_priority
    111111      );
  • testsuites/tmtests/tm09/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1818  rtems_task_argument argument
    1919);
    20 void queue_test();
     20void queue_test(void);
    2121
    2222rtems_task Init(
     
    3232  status = rtems_task_create(
    3333    1,
    34     (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     34    (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    3535    RTEMS_MINIMUM_STACK_SIZE * 2,
    3636    RTEMS_DEFAULT_MODES,
     
    8787}
    8888
    89 void queue_test()
     89void queue_test(void)
    9090{
    9191  uint32_t    send_loop_time;
  • testsuites/tmtests/tm10/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2828);
    2929
    30 void test_init();
     30void test_init(void);
    3131
    3232int operation_count = OPERATION_COUNT;
     
    8585  status = rtems_message_queue_create(
    8686    1,
    87     operation_count,
     87    (uint32_t)operation_count,
    8888    16,
    8989    RTEMS_DEFAULT_ATTRIBUTES,
  • testsuites/tmtests/tm11/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4444  status = rtems_task_create(
    4545    1,
    46     RTEMS_MAXIMUM_PRIORITY - 1,
     46    RTEMS_MAXIMUM_PRIORITY - 1u,
    4747    RTEMS_MINIMUM_STACK_SIZE,
    4848    RTEMS_DEFAULT_MODES,
     
    6565)
    6666{
    67   uint32_t      index;
     67  int                 index;
    6868  rtems_task_entry    task_entry;
    6969  rtems_task_priority priority;
     
    8585  directive_failed( status, "rtems_message_queue_create" );
    8686
    87   priority = RTEMS_MAXIMUM_PRIORITY - 2;
     87  priority = RTEMS_MAXIMUM_PRIORITY - 2u;
    8888
    89   if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
    90     operation_count =  RTEMS_MAXIMUM_PRIORITY - 2;
     89  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u )
     90    operation_count =  RTEMS_MAXIMUM_PRIORITY - 2u;
    9191  for( index = 0; index < operation_count ; index++ ) {
    9292    status = rtems_task_create(
  • testsuites/tmtests/tm12/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4646  status = rtems_task_create(
    4747    1,
    48     RTEMS_MAXIMUM_PRIORITY - 1,
     48    RTEMS_MAXIMUM_PRIORITY - 1u,
    4949    RTEMS_MINIMUM_STACK_SIZE,
    5050    RTEMS_DEFAULT_MODES,
     
    6565)
    6666{
    67   uint32_t       index;
     67  int                  index;
    6868  rtems_task_entry     task_entry;
    6969  rtems_task_priority  priority;
     
    7474  status = rtems_message_queue_create(
    7575    rtems_build_name( 'M', 'Q', '1', ' ' ),
    76     operation_count,
     76    (uint32_t) operation_count,
    7777    MESSAGE_SIZE,
    7878    RTEMS_DEFAULT_ATTRIBUTES,
     
    8181  directive_failed( status, "rtems_message_queue_create" );
    8282
    83   priority = RTEMS_MAXIMUM_PRIORITY - 1;
     83  priority = RTEMS_MAXIMUM_PRIORITY - 1u;
    8484
    8585  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
     
    9999    priority--;
    100100
    101     if ( index==operation_count-1 ) task_entry = High_task;
    102     else                            task_entry = Low_tasks;
     101    if ( index == operation_count-1 ) task_entry = High_task;
     102    else                              task_entry = Low_tasks;
    103103
    104104    status = rtems_task_start( task_id, task_entry, 0 );
     
    111111)
    112112{
    113   uint32_t    index;
     113  int  index;
    114114
    115115  benchmark_timer_initialize();
  • testsuites/tmtests/tm13/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4646  status = rtems_task_create(
    4747    1,
    48     RTEMS_MAXIMUM_PRIORITY - 1,
     48    RTEMS_MAXIMUM_PRIORITY - 1u,
    4949    RTEMS_MINIMUM_STACK_SIZE,
    5050    RTEMS_DEFAULT_MODES,
     
    6565)
    6666{
    67   uint32_t            index;
     67  int                 index;
    6868  rtems_task_entry    task_entry;
    6969  rtems_task_priority priority;
     
    8585  directive_failed( status, "rtems_message_queue_create" );
    8686
    87   priority = RTEMS_MAXIMUM_PRIORITY - 2;
     87  priority = RTEMS_MAXIMUM_PRIORITY - 2u;
    8888
    89   if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
    90     operation_count =  RTEMS_MAXIMUM_PRIORITY - 2;
     89  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u )
     90    operation_count =  (int)(RTEMS_MAXIMUM_PRIORITY - 2u);
    9191
    9292  for( index = 0; index < operation_count ; index++ ) {
  • testsuites/tmtests/tm14/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4646  status = rtems_task_create(
    4747    1,
    48     RTEMS_MAXIMUM_PRIORITY - 1,
     48    RTEMS_MAXIMUM_PRIORITY - 1u,
    4949    RTEMS_MINIMUM_STACK_SIZE,
    5050    RTEMS_DEFAULT_MODES,
     
    6565)
    6666{
    67   uint32_t       index;
     67  int                  index;
    6868  rtems_task_entry     task_entry;
    6969  rtems_task_priority  priority;
    7070  rtems_id             task_id;
    7171  rtems_status_code    status;
    72 
    7372
    7473  status = rtems_message_queue_create(
     
    8180  directive_failed( status, "rtems_message_queue_create" );
    8281
    83   priority = RTEMS_MAXIMUM_PRIORITY - 2;
    84   if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
    85     operation_count =  RTEMS_MAXIMUM_PRIORITY - 2;
     82  priority = RTEMS_MAXIMUM_PRIORITY - 2u;
     83  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u )
     84    operation_count =  (int) (RTEMS_MAXIMUM_PRIORITY - 2u);
    8685
    8786  for( index = 0; index < operation_count ; index++ ) {
     
    110109)
    111110{
    112   uint32_t    index;
     111  int  index;
    113112
    114113  benchmark_timer_initialize();
  • testsuites/tmtests/tm15/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *
    3  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2009.
    43 *  On-Line Applications Research Corporation (OAR).
    54 *
     
    2423);
    2524
    26 void test_init();
     25void test_init(void);
    2726
    2827rtems_task Init(
     
    4241}
    4342
    44 void test_init()
     43void test_init(void)
    4544{
    4645  rtems_id          id;
  • testsuites/tmtests/tm16/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4242  status = rtems_task_create(
    4343    rtems_build_name( 'T', 'E', 'S', 'T' ),
    44     RTEMS_MAXIMUM_PRIORITY - 1,
     44    RTEMS_MAXIMUM_PRIORITY - 1u,
    4545    RTEMS_MINIMUM_STACK_SIZE,
    4646    RTEMS_DEFAULT_MODES,
     
    6363  rtems_task_priority priority;
    6464  rtems_status_code   status;
    65   uint32_t            index;
     65  int                 index;
    6666  rtems_task_entry    task_entry;
    6767
     
    7171 */
    7272
    73   priority = RTEMS_MAXIMUM_PRIORITY - 2;
    74   if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
    75     operation_count =  RTEMS_MAXIMUM_PRIORITY - 2;
     73  priority = RTEMS_MAXIMUM_PRIORITY - 2u;
     74  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u )
     75    operation_count =  (int) (RTEMS_MAXIMUM_PRIORITY - 2u);
    7676
    7777  for( index = 0 ; index < operation_count ; index++ ) {
     
    141141    "rtems_event_send: task readied -- preempts caller",
    142142    end_time,
    143     operation_count - 1,
    144     0,
     143    operation_count - 1u,
     144    0u,
    145145    CALLING_OVERHEAD_EVENT_SEND
    146146  );
  • testsuites/tmtests/tm17/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    3535{
    3636  rtems_task_entry  task_entry;
    37   uint32_t    index;
     37  int               index;
    3838  rtems_status_code status;
    3939
     
    4242  puts( "\n\n*** TIME TEST 17 ***" );
    4343
    44   Task_priority = RTEMS_MAXIMUM_PRIORITY - 1;
    45   if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2 )
    46     operation_count =  RTEMS_MAXIMUM_PRIORITY - 2;
     44  Task_priority = RTEMS_MAXIMUM_PRIORITY - 1u;
     45  if ( OPERATION_COUNT > RTEMS_MAXIMUM_PRIORITY - 2u )
     46    operation_count =  (int) (RTEMS_MAXIMUM_PRIORITY - 2u);
    4747
    4848  for( index = 0; index < operation_count ; index++ ) {
     
    108108)
    109109{
    110   uint32_t  index;
     110  int index;
    111111
    112112  end_time = benchmark_timer_read();
     
    120120    "rtems_task_set_priority: preempts caller",
    121121    end_time,
    122     operation_count - 1,
     122    operation_count - 1u,
    123123    overhead,
    124124    CALLING_OVERHEAD_TASK_SET_PRIORITY
  • testsuites/tmtests/tm18/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515uint32_t   taskcount;
    1616rtems_task_priority taskpri;
     17
     18void test_init(void);
    1719
    1820rtems_task First_task(
     
    4749}
    4850
    49 void test_init()
     51void test_init(void)
    5052{
    5153  rtems_id          id;
     
    5759    status = rtems_task_create(
    5860      rtems_build_name( 'T', 'I', 'M', 'E' ),
    59       (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     61      (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    6062      RTEMS_MINIMUM_STACK_SIZE,
    6163      RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm19/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4545  status = rtems_task_create(
    4646    rtems_build_name( 'T', 'I', 'M', 'E' ),
    47     (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     47    (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    4848    RTEMS_MINIMUM_STACK_SIZE,
    4949    RTEMS_DEFAULT_MODES,
     
    7171  status = rtems_task_create(
    7272    rtems_build_name( 'T', 'I', 'M', 'E' ),
    73     (RTEMS_MAXIMUM_PRIORITY / 2) - 1,
     73    (RTEMS_MAXIMUM_PRIORITY / 2u) - 1u,
    7474    RTEMS_MINIMUM_STACK_SIZE,
    7575    RTEMS_DEFAULT_MODES,
     
    167167}
    168168
     169/* avoid warnings for no prototype */
     170rtems_asr Process_asr_for_task_2(
     171  rtems_signal_set signals
     172);
     173
    169174rtems_asr Process_asr_for_task_2(
    170175  rtems_signal_set signals
  • testsuites/tmtests/tm20/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    5858  status = rtems_task_create(
    5959    rtems_build_name( 'T', 'I', 'M', '1' ),
    60     (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     60    (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    6161    RTEMS_MINIMUM_STACK_SIZE,
    6262    RTEMS_DEFAULT_MODES,
     
    7171  status = rtems_task_create(
    7272    rtems_build_name( 'T', 'I', 'M', '2' ),
    73     (RTEMS_MAXIMUM_PRIORITY / 2) + 2,
     73    (RTEMS_MAXIMUM_PRIORITY / 2u) + 2u,
    7474    RTEMS_MINIMUM_STACK_SIZE,
    7575    RTEMS_DEFAULT_MODES,
     
    311311
    312312  status = rtems_task_set_priority(
    313     RTEMS_SELF, RTEMS_MAXIMUM_PRIORITY - 1, &previous_priority );
     313    RTEMS_SELF, RTEMS_MAXIMUM_PRIORITY - 1u, &previous_priority );
    314314  directive_failed( status, "rtems_task_set_priority" );
    315315
  • testsuites/tmtests/tm21/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    3333  status = rtems_task_create(
    3434    rtems_build_name( 'T', 'I', 'M', 'E' ),
    35     RTEMS_MAXIMUM_PRIORITY - 5,
     35    RTEMS_MAXIMUM_PRIORITY - 5u,
    3636    RTEMS_MINIMUM_STACK_SIZE,
    3737    RTEMS_DEFAULT_MODES,
     
    6161    status = rtems_task_create (
    6262      index,
    63       RTEMS_MAXIMUM_PRIORITY - 1,
     63      RTEMS_MAXIMUM_PRIORITY - 1u,
    6464      RTEMS_MINIMUM_STACK_SIZE,
    6565      RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm23/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4242
    4343  rtems_task_priority priority;
    44   uint32_t      index;
     44  int                 index;
    4545  rtems_id            id;
    4646  rtems_task_entry    task_entry;
     
    295295    end_time,
    296296    operation_count,
    297    0,
     297    0,
    298298    CALLING_OVERHEAD_TASK_WAKE_WHEN
    299299  );
  • testsuites/tmtests/tm24/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    5151    status = rtems_task_create(
    5252      rtems_build_name( 'R', 'E', 'S', 'T' ),
    53       (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     53      (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    5454      RTEMS_MINIMUM_STACK_SIZE,
    5555      RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm25/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4646  status = rtems_task_create(
    4747    rtems_build_name( 'L', 'O', 'W', ' ' ),
    48     RTEMS_MAXIMUM_PRIORITY - 1,
     48    RTEMS_MAXIMUM_PRIORITY - 1u,
    4949    RTEMS_MINIMUM_STACK_SIZE,
    5050    RTEMS_DEFAULT_MODES,
     
    6060    status = rtems_task_create(
    6161      rtems_build_name( 'T', 'I', 'M', 'E' ),
    62       (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     62      (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    6363      RTEMS_MINIMUM_STACK_SIZE,
    6464      RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm26/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    5555uint32_t   thread_get_invalid_time;
    5656
     57rtems_task null_task(
     58  rtems_task_argument argument
     59);
     60
    5761rtems_task High_task(
    5862  rtems_task_argument argument
     
    9599  puts( "\n\n*** TIME TEST 26 ***" );
    96100
    97 #define FP1_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 3)      /* 201, */
     101#define FP1_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 3u)      /* 201, */
    98102  status = rtems_task_create(
    99103    rtems_build_name( 'F', 'P', '1', ' ' ),
     
    109113  directive_failed( status, "rtems_task_start of FP1" );
    110114
    111 #define FP2_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 2)      /* 202, */
     115#define FP2_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 2u)      /* 202, */
    112116  status = rtems_task_create(
    113117    rtems_build_name( 'F', 'P', '2', ' ' ),
     
    123127  directive_failed( status, "rtems_task_start of FP2" );
    124128
    125 #define LOW_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 4)   /*  200, */
     129#define LOW_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 4u)   /*  200, */
    126130  status = rtems_task_create(
    127131    rtems_build_name( 'L', 'O', 'W', ' ' ),
     
    137141  directive_failed( status, "rtems_task_start of LOW" );
    138142
    139 #define MIDDLE_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 5)   /*  128, */
     143#define MIDDLE_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 5u)   /*  128, */
    140144  status = rtems_task_create(
    141145    rtems_build_name( 'M', 'I', 'D', ' ' ),
     
    176180    status = rtems_task_create(
    177181      rtems_build_name( 'N', 'U', 'L', 'L' ),
    178       RTEMS_MAXIMUM_PRIORITY - 1,      /* 254, */
     182      RTEMS_MAXIMUM_PRIORITY - 1u,      /* 254, */
    179183      RTEMS_MINIMUM_STACK_SIZE,
    180184      RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm27/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    5252  puts( "\n\n*** TIME TEST 27 ***" );
    5353
    54 #define LOW_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 1)
     54#define LOW_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 1u)
    5555  status = rtems_task_create(
    5656    rtems_build_name( 'T', 'A', '1', ' ' ),
  • testsuites/tmtests/tm28/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    3434  status = rtems_task_create(
    3535    rtems_build_name( 'T', 'I', 'M', 'E' ),
    36     (RTEMS_MAXIMUM_PRIORITY / 2) + 1,
     36    (RTEMS_MAXIMUM_PRIORITY / 2u) + 1u,
    3737    RTEMS_MINIMUM_STACK_SIZE,
    3838    RTEMS_DEFAULT_MODES,
  • testsuites/tmtests/tm29/task1.c

    rd0a263a r1055ce20  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    117117  );
    118118
    119 #define LOOP_TASK_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2) + 1)
     119#define LOOP_TASK_PRIORITY ((RTEMS_MAXIMUM_PRIORITY / 2u) + 1u)
    120120  for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
    121121    status = rtems_task_create(
     
    133133  }
    134134
    135 #define MIDDLE_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 2)
     135#define MIDDLE_PRIORITY (RTEMS_MAXIMUM_PRIORITY - 2u)
    136136  status = rtems_task_create(
    137137    rtems_build_name( 'L', 'O', 'W', ' ' ),
  • testsuites/tmtests/tmoverhd/empty.c

    rd0a263a r1055ce20  
    1212
    1313#include "system.h"
     14
     15rtems_task task_func(void);
     16void null_func(void);
     17rtems_status_code Empty_directive(void);
    1418
    1519rtems_timer_service_routine Timer_handler(
     
    3135}
    3236
    33 rtems_task task_func() {}
     37rtems_task task_func(void)
     38{
     39}
    3440
    35 void null_func() {}
     41void null_func(void)
     42{
     43}
    3644
    37 rtems_status_code Empty_directive()
     45rtems_status_code Empty_directive(void)
    3846{
    3947  return( RTEMS_SUCCESSFUL );
Note: See TracChangeset for help on using the changeset viewer.