X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3736e0252d96679e19cfbe41f3c09833d3734386..9d765a692e8aae0c06d16ce6d7db2acdd0b3b63d:/src/surf/surf_routing_floyd.c diff --git a/src/surf/surf_routing_floyd.c b/src/surf/surf_routing_floyd.c index ea030ea1fd..4d71a2273d 100644 --- a/src/surf/surf_routing_floyd.c +++ b/src/surf/surf_routing_floyd.c @@ -248,7 +248,6 @@ void model_floyd_parse_route(AS_t rc, const char *src, /* set the size of table routing */ size_t table_size = xbt_dict_length(rc->to_index); int *src_id, *dst_id; - int i,j; src_id = xbt_dict_get_or_null(rc->to_index, src); dst_id = xbt_dict_get_or_null(rc->to_index, dst); @@ -258,6 +257,7 @@ void model_floyd_parse_route(AS_t rc, const char *src, if(!as->link_table) { + int i,j; /* Create Cost, Predecessor and Link tables */ as->cost_table = xbt_new0(double, table_size * table_size); /* link cost from host to host */ as->predecessor_table = xbt_new0(int, table_size * table_size); /* predecessor host numbers */