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
Compile with flag NDEBUG.
[simgrid.git]
/
examples
/
msg
/
icomms
/
peer3.c
diff --git
a/examples/msg/icomms/peer3.c
b/examples/msg/icomms/peer3.c
index
417893d
..
6fcef1e
100644
(file)
--- a/
examples/msg/icomms/peer3.c
+++ b/
examples/msg/icomms/peer3.c
@@
-88,7
+88,8
@@
int receiver(int argc, char *argv[])
int tasks = atof(argv[2]);
m_task_t *task = xbt_new(m_task_t, tasks);
int tasks = atof(argv[2]);
m_task_t *task = xbt_new(m_task_t, tasks);
- int read = sscanf(argv[1], "%d", &id);
+ int read;
+ read = sscanf(argv[1], "%d", &id);
xbt_assert1(read, "Invalid argument %s\n", argv[1]);
sprintf(mailbox, "receiver-%d", id);
MSG_process_sleep(10);
xbt_assert1(read, "Invalid argument %s\n", argv[1]);
sprintf(mailbox, "receiver-%d", id);
MSG_process_sleep(10);