X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2599ef96125066e141d69d3348c8b4c23d773938..4fd0d6649dc0505f2a9620ed3ab421d839b82374:/src/surf/surf_routing_rulebased.c diff --git a/src/surf/surf_routing_rulebased.c b/src/surf/surf_routing_rulebased.c index 03ae1a4d93..611ad3eebd 100644 --- a/src/surf/surf_routing_rulebased.c +++ b/src/surf/surf_routing_rulebased.c @@ -394,7 +394,7 @@ static void rulebased_finalize(routing_component_t rc) } /* Creation routing model functions */ -void *model_rulebased_create(void) +routing_component_t model_rulebased_create(void) { routing_component_rulebased_t new_component = xbt_new0(s_routing_component_rulebased_t, 1); @@ -418,5 +418,5 @@ void *model_rulebased_create(void) new_component->list_ASroute = xbt_dynar_new(sizeof(rule_route_extended_t), &rule_route_extended_free); - return new_component; + return (routing_component_t) new_component; }