pointer bogue for *(d->iam_a_slave)
authorfrdupin
Wed, 07 Feb 2007 12:29:52 +0100
changeset 89 11dda1450e09
parent 88 b6e0b91d073a
child 90 7df322d86ae1
pointer bogue for *(d->iam_a_slave)
src/lss.c
--- a/src/lss.c	Wed Feb 07 12:27:05 2007 +0100
+++ b/src/lss.c	Wed Feb 07 12:29:52 2007 +0100
@@ -126,7 +126,7 @@
 		[2..7] = 0 reserved
 	*/
 	
-	if (!(d->iam_a_slave))
+	if (! *(d->iam_a_slave))
 	{
 		msg.cob_id.w = 0x07E5 /* 2021 */;
 
@@ -157,7 +157,7 @@
 	Message msg;
 	lss_init_msg(&msg);
 
-	if (d->iam_a_slave) /* not the master */
+	if (*(d->iam_a_slave)) /* not the master */
 		return; 
 
 	msg.cob_id.w = 0x07E5 /* 2021 */;
@@ -271,7 +271,7 @@
 	Message msg;
 	lss_init_msg(&msg);
 
-	if (!(d->iam_a_slave))
+	if (!*(d->iam_a_slave))
 	{
 		msg.cob_id.w = 0x07E5 /* 2021 */;
 
@@ -320,7 +320,7 @@
 	Message msg;
 	lss_init_msg(&msg);
 
-	if (!(d->iam_a_slave))
+	if (!*(d->iam_a_slave))
 	{
 		msg.cob_id.w = 0x07E5 /* 2021 */;
 
@@ -372,7 +372,7 @@
 	Message msg;
 	lss_init_msg(&msg);
 
-	if (d->iam_a_slave)
+	if (*(d->iam_a_slave))
 		return;
 	
 	msg.cob_id.w = 0x07E5 /* 2021 */;
@@ -411,7 +411,7 @@
 	Message msg;
 	lss_init_msg(&msg);
 
-	if (!(d->iam_a_slave))
+	if (!*(d->iam_a_slave))
 	{
 		msg.cob_id.w = 0x07E5 /* 2021 */;
 
@@ -450,7 +450,7 @@
 	Message msg;
 	lss_init_msg(&msg);
 
-	if (!(d->iam_a_slave))
+	if (!*(d->iam_a_slave))
 	{
 		msg.cob_id.w = 0x07E5 /* 2021 */;
 
@@ -468,7 +468,7 @@
 	Message msg;
 	lss_init_msg(&msg);
 
-	if (!(d->iam_a_slave)) /* not a slave */
+	if (!*(d->iam_a_slave)) /* not a slave */
 		return -1;
 
 	UNS32 value = 0;
@@ -522,7 +522,7 @@
 	Message msg;
 	lss_init_msg(&msg);
 
-	if (!(d->iam_a_slave))
+	if (!*(d->iam_a_slave))
 	{
 		/*
 			request answers from all slaves corresponding