Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Regenerate with newest flex, so that new gcc paranoia get dealt with
[simgrid.git] / src / gras / DataDesc / cbps.c
index d82f07c..df1b055 100644 (file)
@@ -27,10 +27,6 @@ typedef struct s_gras_cbps {
   xbt_dynar_t globals;
 } s_gras_cbps_t;
 
-static void free_string(void *d){
-  free(*(void**)d);
-}
-
 gras_cbps_t gras_cbps_new(void) {
   gras_cbps_t  res;
 
@@ -64,8 +60,7 @@ void gras_cbps_reset(gras_cbps_t state) {
 
   xbt_dynar_reset(state->lints);
 
-  xbt_dict_free ( &(state->space) );
-  state->space = xbt_dict_new();
+  xbt_dict_reset (state->space);
 
   xbt_dynar_reset(state->frames);
   xbt_dynar_reset(state->globals);
@@ -266,7 +261,7 @@ void
 gras_cbps_block_end(gras_cbps_t ps) {
 
   xbt_dynar_t  frame        = NULL;
-  int           cursor       =    0;
+  unsigned int cursor       =    0;
   char         *name         = NULL;
 
   xbt_assert0(xbt_dynar_length(ps->frames),