Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 6 Dec 2011 14:42:01 +0000 (15:42 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 6 Dec 2011 14:42:01 +0000 (15:42 +0100)
1  2 
examples/msg/properties/msg_prop.c

@@@ -51,10 -50,10 +51,10 @@@ static void test_host(const char*hostna
    XBT_INFO("   Property: %s old value: %s", exist, value);
  
    XBT_INFO("== Trying to modify a host property");
-   xbt_dict_set(props, exist, xbt_strdup("250"), xbt_free_f);
+   xbt_dict_set(props, exist, xbt_strdup("250"), NULL);
  
    /* Test if we have changed the value */
 -  value = MSG_host_get_property_value(host1, exist);
 +  value = MSG_host_get_property_value(thehost, exist);
    xbt_assert(value, "Property %s is undefined (where it should)", exist);
    xbt_assert(!strcmp(value, "250"),
                "Value of property %s is defined to %s (where it should be 250)",