Minor change in master.c.
authorFlorian Pose <fp@igh-essen.com>
Mon, 06 Nov 2006 14:21:35 +0000
changeset 483 1a507e9ab735
parent 482 fbaaaf2a6234
child 484 9fde4a17b820
Minor change in master.c.
master/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);