Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ansi declaration of the variables (at the beginning of the block).
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 Jan 2008 14:37:23 +0000 (14:37 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 Jan 2008 14:37:23 +0000 (14:37 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5162 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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="#";
   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_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;
   DEBUG1("%d", xbt_dict_length(workstation_set));                              
   if (workstation_set != NULL && xbt_dict_length(workstation_set) > 0)
      set = workstation_set;