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
[sonar] Move include before any code.
[simgrid.git]
/
src
/
xbt
/
dict_elm.c
diff --git
a/src/xbt/dict_elm.c
b/src/xbt/dict_elm.c
index
28c0901
..
be4d8a0
100644
(file)
--- a/
src/xbt/dict_elm.c
+++ b/
src/xbt/dict_elm.c
@@
-1,6
+1,6
@@
/* dict - a generic dictionary, variation over hash table */
/* dict - a generic dictionary, variation over hash table */
-/* Copyright (c) 2004-201
7
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2004-201
9
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-42,12
+42,9
@@
void xbt_dictelm_free(xbt_dict_t dict, xbt_dictelm_t element)
}
}
}
}
-void xbt_dictelm_set_data(xbt_dict_t dict, xbt_dictelm_t element, void
*data, void_f_pvoid_t free_ctn
)
+void xbt_dictelm_set_data(xbt_dict_t dict, xbt_dictelm_t element, void
* data
)
{
{
- void_f_pvoid_t free_f;
- free_f = dict->free_f;
- xbt_assert(!free_ctn, "Cannot set an individual free function in homogeneous dicts.");
-
+ void_f_pvoid_t free_f = dict->free_f;
if (free_f && element->content)
free_f(element->content);
if (free_f && element->content)
free_f(element->content);