Minor change in master.c.
--- a/master/master.c Mon Nov 06 14:19:03 2006 +0000
+++ b/master/master.c Mon Nov 06 14:21:35 2006 +0000
@@ -248,10 +248,10 @@
{
ec_master_t *master = container_of(kobj, ec_master_t, kobj);
ec_eoe_t *eoe, *next_eoe;
- ec_datagram_t *datagram, *next_c;
-
- // empty datagram queue
- list_for_each_entry_safe(datagram, next_c,
+ ec_datagram_t *datagram, *next_datagram;
+
+ // dequeue all datagrams
+ list_for_each_entry_safe(datagram, next_datagram,
&master->datagram_queue, queue) {
datagram->state = EC_DATAGRAM_ERROR;
list_del_init(&datagram->queue);