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
Use type network_element_t instead of void*, and avoid unnecessary casts.
[simgrid.git]
/
src
/
surf
/
surf.c
diff --git
a/src/surf/surf.c
b/src/surf/surf.c
index
5618234
..
3386132
100644
(file)
--- a/
src/surf/surf.c
+++ b/
src/surf/surf.c
@@
-307,7
+307,7
@@
XBT_LOG_EXTERNAL_CATEGORY(surf_network_gtnets);
static XBT_INLINE void routing_asr_host_free(void *p)
{
- network_element_t elm =
(network_element_t)
p;
+ network_element_t elm = p;
free(elm->name);
xbt_free(elm);
}