Removed some warnings.
authoretisserant
Tue, 17 Mar 2009 00:04:24 +0100
changeset 540 6857b6ffb7a7
parent 539 187058b4a4b8
child 541 dcc7f1323ce5
Removed some warnings.
drivers/timers_unix/timers_unix.c
examples/DS401_Master/TestMasterMicroMod.c
examples/TestMasterMicroMod/TestMasterMicroMod.c
examples/TestMasterSlave/Master.c
--- a/drivers/timers_unix/timers_unix.c	Tue Mar 17 00:03:18 2009 +0100
+++ b/drivers/timers_unix/timers_unix.c	Tue Mar 17 00:04:24 2009 +0100
@@ -83,12 +83,12 @@
  * Enter in realtime and start the CAN receiver loop
  * @param port
  */
-void unixtimer_canReceiveLoop(CAN_PORT port)
+void* unixtimer_canReceiveLoop(void* port)
 {
        
     /*get signal*/
     signal(SIGTERM, canReceiveLoop_signal);
-    unixtimer_ReceiveLoop_task_proc(port);
+    unixtimer_ReceiveLoop_task_proc((CAN_PORT)port);
 }
 
 void CreateReceiveTask(CAN_PORT port, TASK_HANDLE* Thread, void* ReceiveLoopPtr)
--- a/examples/DS401_Master/TestMasterMicroMod.c	Tue Mar 17 00:03:18 2009 +0100
+++ b/examples/DS401_Master/TestMasterMicroMod.c	Tue Mar 17 00:04:24 2009 +0100
@@ -38,7 +38,7 @@
 #include "canfestival.h"
 #include "TestMasterMicroMod.h"
 #include "TestMaster.h"
-UNS8 slavenodeid;
+unsigned int slavenodeid;
 
 
 /*****************************************************************************/
@@ -56,7 +56,7 @@
 {
 	UNS32 PDO1_COBID = 0x0180 + slavenodeid; 
 	UNS32 PDO2_COBID = 0x0200 + slavenodeid;
-	UNS8 size = sizeof(UNS32); 
+	UNS32 size = sizeof(UNS32); 
 
 	eprintf("TestMaster_initialisation\n");
 
--- a/examples/TestMasterMicroMod/TestMasterMicroMod.c	Tue Mar 17 00:03:18 2009 +0100
+++ b/examples/TestMasterMicroMod/TestMasterMicroMod.c	Tue Mar 17 00:04:24 2009 +0100
@@ -38,7 +38,7 @@
 #include "canfestival.h"
 #include "TestMasterMicroMod.h"
 #include "TestMaster.h"
-UNS8 slavenodeid = 0x40;
+unsigned int slavenodeid = 0x40;
 
 
 /*****************************************************************************/
@@ -56,7 +56,7 @@
 {
 	UNS32 PDO1_COBID = 0x0180 + slavenodeid; 
 	UNS32 PDO2_COBID = 0x0200 + slavenodeid;
-	UNS8 size = sizeof(UNS32); 
+	UNS32 size = sizeof(UNS32); 
 
 	eprintf("TestMaster_initialisation\n");
 
--- a/examples/TestMasterSlave/Master.c	Tue Mar 17 00:03:18 2009 +0100
+++ b/examples/TestMasterSlave/Master.c	Tue Mar 17 00:04:24 2009 +0100
@@ -40,7 +40,7 @@
 {
 	UNS32 PDO1_COBID = 0x0182; 
 	UNS32 PDO2_COBID = 0x0282;
-	UNS8 size = sizeof(UNS32); 
+	UNS32 size = sizeof(UNS32); 
 	UNS32 SINC_cicle=0;
 	UNS8 data_type = 0;