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
Patching it does not seem to work remaining communication temporaly disabled.
[simgrid.git]
/
src
/
swag_unit.c
diff --git
a/src/swag_unit.c
b/src/swag_unit.c
index
d3e5dbb
..
72846ba
100644
(file)
--- a/
src/swag_unit.c
+++ b/
src/swag_unit.c
@@
-22,8
+22,8
@@
XBT_TEST_UNIT("basic",test_swag_basic,"Basic usage") {
shmurtz_t obj1, obj2, obj;
xbt_swag_t setA,setB;
shmurtz_t obj1, obj2, obj;
xbt_swag_t setA,setB;
- obj1 =
calloc(1,sizeof(s_shmurtz_t)
);
- obj2 =
calloc(1,sizeof(s_shmurtz_t)
);
+ obj1 =
xbt_new0(s_shmurtz_t,1
);
+ obj2 =
xbt_new0(s_shmurtz_t,1
);
obj1->name="Obj 1";
obj2->name="Obj 2";
obj1->name="Obj 1";
obj2->name="Obj 2";