Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ansi declaration of the variables (at the beginning of the block).
[simgrid.git] / src / surf / surfxml_parse.c
index 07773ec..5c6aa38 100644 (file)
@@ -851,11 +851,12 @@ static void convert_route_multi_to_routes(void)
   unsigned int cpt, cpt2, cursor;
   char *src_host_name, *dst_host_name, *key, *src, *dst, *val, *key_w, *data_w; 
   const char* sep="#";
+  xbt_dict_t set;
   xbt_dynar_t src_names = NULL, dst_names = NULL, links;
 
   if (!route_multi_elements) return;
 
-  xbt_dict_t set = cpu_set;
+  set = cpu_set;
   DEBUG1("%d", xbt_dict_length(workstation_set));                              
   if (workstation_set != NULL && xbt_dict_length(workstation_set) > 0)
      set = workstation_set;