X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/66b0686fe441796325c3b5738b1b880d15ce1ea6..f9eaeed428ca3561e883ff8033ac4b4f0d122249:/src/instr/instr_interface.c diff --git a/src/instr/instr_interface.c b/src/instr/instr_interface.c index fabcf00831..df21be5b9a 100644 --- a/src/instr/instr_interface.c +++ b/src/instr/instr_interface.c @@ -38,7 +38,7 @@ void TRACE_category_with_color (const char *category, const char *color) //check if category is already created char *created = xbt_dict_get_or_null(created_categories, category); if (created) return; - xbt_dict_set (created_categories, category, xbt_strdup("1"), xbt_free); + xbt_dict_set (created_categories, category, xbt_strdup("1"), NULL); //define final_color char final_color[INSTR_DEFAULT_STR_SIZE]; @@ -138,7 +138,8 @@ static void instr_user_srcdst_variable(double time, double value, InstrUserVariable what) { - xbt_dynar_t route = global_routing->get_route (src, dst); + xbt_dynar_t route=NULL; + routing_get_route_and_latency (src, dst, &route,NULL); unsigned int i; void *link; xbt_dynar_foreach (route, i, link) {