Avoid warnings on some compilers.
--- 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) {