X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ed1436de46a7989e6ca45b6053ea1205b6715151..e4c62e10ed7daa5ecca2506d38979c2adc3f7d23:/src/surf/surf_routing_rulebased.c diff --git a/src/surf/surf_routing_rulebased.c b/src/surf/surf_routing_rulebased.c index 6e7a605bab..5ae26c08b2 100644 --- a/src/surf/surf_routing_rulebased.c +++ b/src/surf/surf_routing_rulebased.c @@ -230,7 +230,7 @@ static xbt_dynar_t rulebased_get_onelink_routes(AS_t rc) //find router char *router = NULL; xbt_dict_foreach(routing->dict_processing_units, c1, k1, d1) { - if (rc->get_network_element_type(k1) == SURF_NETWORK_ELEMENT_ROUTER){ + if (routing_get_network_element_type(k1) == SURF_NETWORK_ELEMENT_ROUTER){ router = k1; } } @@ -395,7 +395,7 @@ static void rulebased_finalize(AS_t rc) AS_t model_rulebased_create(void) { routing_component_rulebased_t new_component = (routing_component_rulebased_t) - routmod_generic_create(sizeof(s_routing_component_rulebased_t)); + model_generic_create_sized(sizeof(s_routing_component_rulebased_t)); new_component->generic_routing.parse_PU = model_rulebased_parse_PU; new_component->generic_routing.parse_AS = model_rulebased_parse_AS;