X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae8140f19db6cb86f753e32499eab49190846d1f..867ae3ddfab33175d0bce6d797b2f537396693aa:/src/surf/network_constant.c?ds=inline diff --git a/src/surf/network_constant.c b/src/surf/network_constant.c index fc5580ddc6..0a2251c829 100644 --- a/src/surf/network_constant.c +++ b/src/surf/network_constant.c @@ -109,14 +109,14 @@ static void netcste_update_resource_state(void *id, DIE_IMPOSSIBLE; } -static surf_action_t netcste_communicate(void *src, - void *dst, double size, - double rate) +static surf_action_t netcste_communicate(sg_routing_edge_t src, + sg_routing_edge_t dst, + double size, double rate) { surf_action_network_Constant_t action = NULL; - char *src_name = ((network_element_t)src)->name; - char *dst_name = ((network_element_t)dst)->name; + char *src_name = src->name; + char *dst_name = dst->name; XBT_IN("(%s,%s,%g,%g)", src_name, dst_name, size, rate); @@ -234,5 +234,5 @@ void surf_network_model_init_Constant() netcste_define_callbacks(); xbt_dynar_push(model_list, &surf_network_model); - routing_model_create(sizeof(double), NULL); + routing_model_create(NULL); }