X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3eef4e948ebd9b1d8c9d26a6dedd535109856554..b6e0974be6616f62aa724f7ec7ad1cff1b421e1e:/src/surf/fair_bottleneck.c diff --git a/src/surf/fair_bottleneck.c b/src/surf/fair_bottleneck.c index ce44b58fb0..8830107a0a 100644 --- a/src/surf/fair_bottleneck.c +++ b/src/surf/fair_bottleneck.c @@ -1,4 +1,4 @@ -/* 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 @@ -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");