correction of lifegrd compilation warning
authorgreg
Fri, 11 May 2007 11:52:05 +0200
changeset 185 d529e20c323c
parent 184 fb253029c7d4
child 186 5220b201fac7
correction of lifegrd compilation warning
src/lifegrd.c
--- a/src/lifegrd.c	Fri May 11 11:22:58 2007 +0200
+++ b/src/lifegrd.c	Fri May 11 11:52:05 2007 +0200
@@ -27,8 +27,7 @@
 /* Prototypes for internals functions */
 void ConsumerHearbeatAlarm(CO_Data* d, UNS32 id);
 void ProducerHearbeatAlarm(CO_Data* d, UNS32 id);
-UNS32 OnHearbeatUpdate(CO_Data* d, const indextable * unsused_indextable, UNS8 unsused_bSubindex);
-
+UNS32 OnHearbeatProducerUpdate(CO_Data* d, const indextable * unsused_indextable, UNS8 unsused_bSubindex);
 
 /*****************************************************************************/
 e_nodeState getNodeState (CO_Data* d, UNS8 nodeId)
@@ -137,7 +136,7 @@
 
 /*****************************************************************************/
 /* This is called when Index 0x1017 is updated.*/
-UNS32 OnHeartbeatProducerUpdate(CO_Data* d)
+UNS32 OnHeartbeatProducerUpdate(CO_Data* d, const indextable * unsused_indextable, UNS8 unsused_bSubindex)
 {
 	heartbeatStop(d);
 	heartbeatInit(d);
@@ -149,7 +148,7 @@
 {
 		
     UNS8 index; /* Index to scan the table of heartbeat consumers */
-	RegisterSetODentryCallBack(d, 0x1017,0x00, &OnHeartbeatProducerUpdate);
+	RegisterSetODentryCallBack(d, 0x1017, 0x00, &OnHeartbeatProducerUpdate);
     
     d->toggle = 0;