# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1190125110 0
# Node ID 226fe5065cf2603faf541fef14d0838d56aa5a1c
# Parent  3aed091b266386cdf09e07f1e60d79955a178e79
Avoid warnings on some compilers.

diff -r 3aed091b2663 -r 226fe5065cf2 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) {