Add missing prototypes.

This commit is contained in:
Ralf Corsepius
2009-10-30 11:09:13 +00:00
parent 2960c42fab
commit 1b4b7f397b
8 changed files with 36 additions and 36 deletions

View File

@@ -40,13 +40,13 @@ do { \
void TestCre();
void TestDel();
void TestPsnd();
void TestRef();
void TestTrcv();
void TestRcv();
void TestPrcv();
void TestCre(void);
void TestDel(void);
void TestPsnd(void);
void TestRef(void);
void TestTrcv(void);
void TestRcv(void);
void TestPrcv(void);
void ITRON_Init( void )
{
@@ -65,7 +65,7 @@ void ITRON_Init( void )
rtems_test_exit(0);
}
void TestCre()
void TestCre(void)
{
ER status;
T_CMBF pk_cmbf;
@@ -139,7 +139,7 @@ void TestCre()
assert( status == E_OK );
}
void TestDel()
void TestDel(void)
{
ER status;
@@ -169,7 +169,7 @@ void TestDel()
assert(status == E_OK);
}
void TestPsnd()
void TestPsnd(void)
{
ER status;
char msg[100] = "This is test message 1";
@@ -212,7 +212,7 @@ void TestPsnd()
assert( status == E_OK );
}
void TestRef()
void TestRef(void)
{
ER status;
T_RMBF pk_rmbf;
@@ -242,17 +242,17 @@ void TestRef()
status = ref_mbf( &pk_rmbf, 1 );
assert( status == E_OK );
printf( "Init - mbf 1 msgsz = %d\n", pk_rmbf.msgsz );
printf( "Init - mbf 1 frbufsz = %d\n", pk_rmbf.frbufsz );
printf( "Init - mbf 1 msgsz = %" PRId32 "\n", pk_rmbf.msgsz );
printf( "Init - mbf 1 frbufsz = %" PRId32 "\n", pk_rmbf.frbufsz );
printf( "Init - mbf 1 waiting tasks = %d\n", pk_rmbf.wtsk );
printf( "Init - mbf 1 sending tasks = %d\n", pk_rmbf.stsk);
}
void TestRcv()
void TestRcv(void)
{
ER status;
char buffer[200];
uint32_t s;
INT s;
puts( "Init - rcv_mbf - bad id (less than -4) - E_OACV" );
status = rcv_mbf(buffer, &s, -5);
@@ -281,15 +281,15 @@ void TestRcv()
puts("Init - rcv_mbf -- OK");
status = rcv_mbf(buffer, &s, 1);
assert(status == E_OK);
printf("Message:[%s], length:%d\n", buffer, s);
printf("Message:[%s], length:%" PRId32 "\n", buffer, s);
}
void TestPrcv()
void TestPrcv(void)
{
ER status;
char buffer[200];
uint32_t s;
INT s;
puts( "Init - prcv_mbf - bad id (less than -4) - E_OACV" );
status = prcv_mbf(buffer, &s, -5);
@@ -321,11 +321,11 @@ void TestPrcv()
}
void TestTrcv()
void TestTrcv(void)
{
ER status;
char buffer[200];
uint32_t s;
INT s;
puts( "Init - trcv_mbf - bad id (less than -4) - E_OACV" );
status = trcv_mbf(buffer, &s, -5, 5000);

View File

@@ -19,7 +19,7 @@
/* functions */
void ITRON_Init( void );
void Task_2_through_4();
void Task_2_through_4(void);
/* configuration information */

View File

@@ -20,7 +20,7 @@
#include "system.h"
void Task_2_through_4()
void Task_2_through_4(void)
{
ID tid;
int tid_index;

View File

@@ -21,7 +21,7 @@
#include <assert.h>
#include "system.h"
void Dormant_task()
void Dormant_task(void)
{
puts( "DORMANT - ext_tsk - going to DORMANT state" );
ext_tsk( );
@@ -31,7 +31,7 @@ void Dormant_task()
}
void Non_Dormant_task()
void Non_Dormant_task(void)
{
ER status;

View File

@@ -19,8 +19,8 @@
/* functions */
void ITRON_Init( void );
void Dormant_task();
void Non_Dormant_task();
void Dormant_task(void);
void Non_Dormant_task(void);
/* configuration information */

View File

@@ -19,10 +19,10 @@
/* functions */
void ITRON_Init( void );
void Preempt_task();
void Task_1();
void Task_2();
void Task_3();
void Preempt_task(void);
void Task_1(void);
void Task_2(void);
void Task_3(void);
/* configuration information */

View File

@@ -18,11 +18,11 @@
/* functions */
void ITRON_Init( void );
void Preempt_task();
void Task_1();
void Task_2();
void Task_3();
extern void ITRON_Init( void );
extern void Preempt_task(void);
extern void Task_1(void);
extern void Task_2(void);
extern void Task_3(void);
/* configuration information */

View File

@@ -20,7 +20,7 @@
#include "system.h"
void Task_3()
void Task_3(void)
{
rtems_status_code status;
int i;