Changeset 1b4b7f3 in rtems


Ignore:
Timestamp:
Oct 30, 2009, 11:09:13 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
abba9f4
Parents:
2960c42
Message:

Add missing prototypes.

Location:
testsuites/itrontests
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • testsuites/itrontests/itronmbf01/init.c

    r2960c42 r1b4b7f3  
    4141
    4242
    43 void TestCre();
    44 void TestDel();
    45 void TestPsnd();
    46 void TestRef();
    47 void TestTrcv();
    48 void TestRcv();
    49 void TestPrcv();
     43void TestCre(void);
     44void TestDel(void);
     45void TestPsnd(void);
     46void TestRef(void);
     47void TestTrcv(void);
     48void TestRcv(void);
     49void TestPrcv(void);
    5050
    5151void ITRON_Init( void )
     
    6666}
    6767
    68 void TestCre()
     68void TestCre(void)
    6969{
    7070    ER      status;
     
    140140}
    141141
    142 void TestDel()
     142void TestDel(void)
    143143{
    144144    ER    status;
     
    170170}
    171171
    172 void TestPsnd()
     172void TestPsnd(void)
    173173{
    174174    ER   status;
     
    213213}
    214214
    215 void TestRef()
     215void TestRef(void)
    216216{
    217217    ER       status;
     
    243243    assert( status == E_OK );
    244244
    245     printf( "Init - mbf 1 msgsz = %d\n", pk_rmbf.msgsz );
    246     printf( "Init - mbf 1 frbufsz = %d\n", pk_rmbf.frbufsz );
     245    printf( "Init - mbf 1 msgsz = %" PRId32 "\n", pk_rmbf.msgsz );
     246    printf( "Init - mbf 1 frbufsz = %" PRId32 "\n", pk_rmbf.frbufsz );
    247247    printf( "Init - mbf 1 waiting tasks = %d\n", pk_rmbf.wtsk );
    248248    printf( "Init - mbf 1 sending tasks = %d\n", pk_rmbf.stsk);
    249249}
    250250
    251 void TestRcv()
     251void TestRcv(void)
    252252{
    253253    ER         status;
    254254    char       buffer[200];
    255     uint32_t   s;
     255    INT        s;
    256256
    257257    puts( "Init - rcv_mbf - bad id (less than -4) - E_OACV" );
     
    282282    status = rcv_mbf(buffer, &s, 1);
    283283    assert(status == E_OK);
    284     printf("Message:[%s], length:%d\n", buffer, s);
    285 }
    286 
    287 
    288 void TestPrcv()
     284    printf("Message:[%s], length:%" PRId32 "\n", buffer, s);
     285}
     286
     287
     288void TestPrcv(void)
    289289{
    290290    ER         status;
    291291    char       buffer[200];
    292     uint32_t   s;
     292    INT        s;
    293293
    294294    puts( "Init - prcv_mbf - bad id (less than -4) - E_OACV" );
     
    322322
    323323
    324 void TestTrcv()
     324void TestTrcv(void)
    325325{
    326326    ER        status;
    327327    char      buffer[200];
    328     uint32_t  s;
     328    INT       s;
    329329
    330330    puts( "Init - trcv_mbf - bad id (less than -4) - E_OACV" );
  • testsuites/itrontests/itrontask01/system.h

    r2960c42 r1b4b7f3  
    2020
    2121void ITRON_Init( void );
    22 void Task_2_through_4();
     22void Task_2_through_4(void);
    2323
    2424/* configuration information */
  • testsuites/itrontests/itrontask01/task1.c

    r2960c42 r1b4b7f3  
    2121#include "system.h"
    2222
    23 void Task_2_through_4()
     23void Task_2_through_4(void)
    2424{
    2525  ID                tid;
  • testsuites/itrontests/itrontask02/dormant.c

    r2960c42 r1b4b7f3  
    2222#include "system.h"
    2323
    24 void Dormant_task()
     24void Dormant_task(void)
    2525{
    2626  puts( "DORMANT - ext_tsk - going to DORMANT state" );
     
    3232
    3333
    34 void Non_Dormant_task()
     34void Non_Dormant_task(void)
    3535{
    3636  ER       status;
  • testsuites/itrontests/itrontask02/system.h

    r2960c42 r1b4b7f3  
    2020
    2121void ITRON_Init( void );
    22 void Dormant_task();
    23 void Non_Dormant_task();
     22void Dormant_task(void);
     23void Non_Dormant_task(void);
    2424
    2525/* configuration information */
  • testsuites/itrontests/itrontask03/system.h

    r2960c42 r1b4b7f3  
    2020
    2121void ITRON_Init( void );
    22 void Preempt_task();
    23 void Task_1();
    24 void Task_2();
    25 void Task_3();
     22void Preempt_task(void);
     23void Task_1(void);
     24void Task_2(void);
     25void Task_3(void);
    2626
    2727/* configuration information */
  • testsuites/itrontests/itrontask04/system.h

    r2960c42 r1b4b7f3  
    1919/* functions */
    2020
    21 void ITRON_Init( void );
    22 void Preempt_task();
    23 void Task_1();
    24 void Task_2();
    25 void Task_3();
     21extern void ITRON_Init( void );
     22extern void Preempt_task(void);
     23extern void Task_1(void);
     24extern void Task_2(void);
     25extern void Task_3(void);
    2626
    2727/* configuration information */
  • testsuites/itrontests/itrontask04/task3.c

    r2960c42 r1b4b7f3  
    2121#include "system.h"
    2222
    23 void Task_3()
     23void Task_3(void)
    2424{
    2525  rtems_status_code status;
Note: See TracChangeset for help on using the changeset viewer.