Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix error: passing argument 3 of ‘xbt_dict_set’ discards ‘const’ qualifier from point...
[simgrid.git] / src / instr / instr_interface.c
index fabcf00..df21be5 100644 (file)
@@ -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) {