-/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2007-2011. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
}
} 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");