Ignore:
Timestamp:
May 10, 2009, 2:39:46 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
072d2a09
Parents:
1055ce20
Message:

2009-05-10 Joel Sherrill <joel.sherrill@…>

  • sp04/system.h, sp04/task1.c, sp04/tswitch.c, sp07/init.c, sp12/init.c, sp13/putbuff.c, sp13/system.h, sp13/task1.c, sp15/init.c, sp16/system.h, sp19/fptask.c, sp25/system.h, sp26/task1.c, sp27/init.c, sp28/init.c, sp29/init.c, sp31/task1.c, sp33/init.c, sp34/changepri.c, sp35/priinv.c, sp37/init.c, sp38/init.c, sp39/init.c, sp41/init.c, sp42/init.c, sp43/init.c, sp44/init.c, sp45/init.c, sp46/init.c, sp47/init.c, sp48/init.c, spfatal03/testcase.h, spfatal05/testcase.h, spfatal06/testcase.h, spfatal_support/system.h, spobjgetnext/init.c, spsize/getint.c, spsize/size.c: Fix warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp34/changepri.c

    r1055ce20 rb84f1fdc  
    22 *  Test program to demonstrate reordering of threads on thread queues
    33 *  when their priority changes.
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
    48 *
    59 *  $Id$
     
    2529
    2630rtems_task BlockingTasks(rtems_task_argument arg);
     31rtems_task Init(rtems_task_argument ignored);
     32const char *CallerName(void);
    2733
    2834/*
    2935 *  CallerName -- print the calling tasks name or id as configured
    3036 */
    31 const char *CallerName()
     37const char *CallerName(void)
    3238{
    3339  static char buffer[32];
     
    111117    status = rtems_task_create(
    112118      rtems_build_name('B','L','K','0'+i),               /* Name */
    113       2+i,                                               /* Priority */
     119      (rtems_task_priority) 2+i,                         /* Priority */
    114120      RTEMS_MINIMUM_STACK_SIZE*2,                        /* Stack size (8KB) */
    115121      RTEMS_DEFAULT_MODES | RTEMS_NO_ASR,                /* Mode */
     
    119125 
    120126    printf( "Blockers[%d] Id = 0x%08x\n", i, Blockers[i] );
    121     status = rtems_task_start(Blockers[i], BlockingTasks, i);
     127    status = rtems_task_start(
     128      Blockers[i],
     129      BlockingTasks,
     130      (rtems_task_argument)i
     131    );
    122132    directive_failed( status, "rtems_task_start (BLKn)" );
    123133  }
     
    129139  for (i = 0; i < NUMBER_OF_BLOCKING_TASKS; i++) {
    130140    rtems_task_priority opri;
    131     rtems_task_priority npri= 2 + NUMBER_OF_BLOCKING_TASKS - i - 1;
     141    rtems_task_priority npri;
     142
     143    npri = (rtems_task_priority) (2 + NUMBER_OF_BLOCKING_TASKS - i - 1);
    132144
    133145    status = rtems_task_set_priority(Blockers[i], npri, &opri);
Note: See TracChangeset for help on using the changeset viewer.