Avoid warnings on some compilers.
authorFlorian Pose <fp@igh-essen.com>
Tue, 18 Sep 2007 14:18:30 +0000
changeset 730 226fe5065cf2
parent 729 3aed091b2663
child 731 b13ef712a2d7
Avoid warnings on some compilers.
master/slave.c
--- a/master/slave.c	Tue Sep 18 14:17:49 2007 +0000
+++ b/master/slave.c	Tue Sep 18 14:18:30 2007 +0000
@@ -807,7 +807,8 @@
         }
     }
 
-    if (!list_empty(&slave->sii_pdos))
+    // type-cast to avoid warnings on some compilers
+    if (!list_empty((struct list_head *) &slave->sii_pdos))
         off += sprintf(buffer + off, "\nAvailable PDOs:\n");
 
     list_for_each_entry(pdo, &slave->sii_pdos, list) {
@@ -828,7 +829,8 @@
         }
     }
 
-    if (!list_empty(&slave->sdo_confs))
+    // type-cast to avoid warnings on some compilers
+    if (!list_empty((struct list_head *) &slave->sdo_confs))
         off += sprintf(buffer + off, "\nSDO configurations:\n");
 
     list_for_each_entry(sdodata, &slave->sdo_confs, list) {