Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't pass the free_f parameter to MSG_*_set_property_value()
[simgrid.git] / examples / simdag / properties / sd_properties.c
index 040e55b..8271459 100644 (file)
@@ -33,7 +33,7 @@ int main(int argc, char **argv)
   xbt_dict_t props = sg_host_get_properties(h1);
 
   /* Trying to set a new property */
-  xbt_dict_set(props, "NewProp", strdup("newValue"), xbt_free_f);
+  xbt_dict_set(props, "NewProp", strdup("newValue"), NULL);
 
   /* Print the properties of 'host1' */
   xbt_dict_foreach(props, cursor, key, data) {
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
     XBT_INFO("\tProperty: %s is undefined", exist);
   else {
     XBT_INFO("\tProperty: %s old value: %s", exist, value);
-    xbt_dict_set(props, exist, strdup("250"), xbt_free_f);
+    xbt_dict_set(props, exist, strdup("250"), NULL);
   }
 
   /* Test if we have changed the value */