Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Those are constraints, and not elements.
[simgrid.git] / src / surf / maxmin.c
index b75e448..b5a261e 100644 (file)
@@ -811,12 +811,11 @@ static void lmm_update_modified_set(lmm_system_t sys,
  */
 static void lmm_remove_all_modified_set(lmm_system_t sys)
 {
-  lmm_element_t elem = NULL;
-  lmm_element_t elem_next = NULL;
-  xbt_swag_t elem_list = NULL;
+  xbt_swag_t modified_constraint_set = &sys->modified_constraint_set;
+  lmm_constraint_t cnst;
+  lmm_constraint_t cnst_next;
 
-  elem_list = &(sys->modified_constraint_set);
-  xbt_swag_foreach_safe(elem, elem_next, elem_list) {
-    xbt_swag_remove(elem, elem_list);
+  xbt_swag_foreach_safe(cnst, cnst_next, modified_constraint_set) {
+    xbt_swag_remove(cnst, modified_constraint_set);
   }
 }