Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use xbt_swag_reset wherever possible.
[simgrid.git] / src / surf / fair_bottleneck.c
index ce44b58..aa9c4fa 100644 (file)
@@ -172,9 +172,7 @@ void bottleneck_solve(lmm_system_t sys)
     }
   } while (xbt_swag_size(var_list));
 
-  xbt_swag_foreach_safe(cnst, cnst_next, cnst_list) {
-    xbt_swag_remove(cnst, cnst_list);
-  }
+  xbt_swag_reset(cnst_list);
   sys->modified = 0;
   if (XBT_LOG_ISENABLED(surf_maxmin, xbt_log_priority_debug)) {
     XBT_DEBUG("Fair bottleneck done");