Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remplace -> replace
[simgrid.git] / testsuite / xbt / config_usage.c
index 475bab4..f03b44a 100644 (file)
@@ -13,7 +13,7 @@ gras_cfg_t *make_set(){
   gras_cfg_t *set=NULL; 
   gras_error_t errcode;
 
-  TRYFAIL(gras_cfg_new(&set));
+  set = gras_cfg_new();
   TRYFAIL(gras_cfg_register_str(set,"speed:1_to_2_int"));
   TRYFAIL(gras_cfg_register_str(set,"hostname:1_to_1_string"));
   TRYFAIL(gras_cfg_register_str(set,"user:1_to_10_string"));
@@ -71,7 +71,7 @@ int main(int argc, char **argv) {
   gras_cfg_set_parse(set,"speed:42");
   gras_cfg_check(set);
   gras_cfg_get_dynar(set,"user",&dyn);
-  fprintf(stderr,"Count: %d; Options: ",gras_dynar_length(dyn));
+  fprintf(stderr,"Count: %lu; Options: ",gras_dynar_length(dyn));
   gras_dynar_foreach(dyn,ival,str) {
     fprintf(stderr,"%s;",str);
   }