X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/75363cd3a0df2af085f7cb3c63f7828f05e8dd58..06bae8eb4bc956a5ee70ec1d3cdbc5e7e782536f:/src/surf/surf_routing_cluster.c diff --git a/src/surf/surf_routing_cluster.c b/src/surf/surf_routing_cluster.c index bc11f8fe2f..9c8e028779 100644 --- a/src/surf/surf_routing_cluster.c +++ b/src/surf/surf_routing_cluster.c @@ -66,9 +66,9 @@ AS_t model_cluster_create(void) void surf_routing_cluster_add_link(const char* host_id,surf_parsing_link_up_down_t info) { if(!cluster_host_link) - cluster_host_link = xbt_dict_new(); + cluster_host_link = xbt_dict_new_homogeneous(xbt_free); - xbt_dict_set(cluster_host_link,host_id,info,xbt_free); + xbt_dict_set(cluster_host_link,host_id,info,NULL); } void surf_routing_cluster_add_backbone(AS_t as, void* bb) {