A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid into LLL
[simgrid.git]
/
src
/
xbt
/
config.c
diff --git
a/src/xbt/config.c
b/src/xbt/config.c
index
c149aaa
..
39b4262
100644
(file)
--- a/
src/xbt/config.c
+++ b/
src/xbt/config.c
@@
-64,7
+64,7
@@
static xbt_cfgelm_t xbt_cfgelm_get(xbt_cfg_t cfg, const char *name,
xbt_cfg_t xbt_cfg_new(void)
{
xbt_cfg_t xbt_cfg_new(void)
{
- return (xbt_cfg_t) xbt_dict_new
(
);
+ return (xbt_cfg_t) xbt_dict_new
_homogeneous(&xbt_cfgelm_free
);
}
/** \brief Copy an existing configuration set
}
/** \brief Copy an existing configuration set
@@
-263,7
+263,7
@@
xbt_cfg_register(xbt_cfg_t * cfg,
XBT_ERROR("%d is an invalide type code", type);
}
XBT_ERROR("%d is an invalide type code", type);
}
- xbt_dict_set((xbt_dict_t) * cfg, name, res,
&xbt_cfgelm_free
);
+ xbt_dict_set((xbt_dict_t) * cfg, name, res,
NULL
);
}
/** @brief Unregister an element from a config set.
}
/** @brief Unregister an element from a config set.