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
/
peer2.c
diff --git
a/examples/msg/icomms/peer2.c
b/examples/msg/icomms/peer2.c
index
587deda
..
2db1409
100644
(file)
--- a/
examples/msg/icomms/peer2.c
+++ b/
examples/msg/icomms/peer2.c
@@
-66,7
+66,8
@@
int receiver(int argc, char *argv[])
int id = -1;
char mailbox[80];
msg_comm_t res_irecv;
int id = -1;
char mailbox[80];
msg_comm_t res_irecv;
- int read = sscanf(argv[1], "%d", &id);
+ int read;
+ read = sscanf(argv[1], "%d", &id);
xbt_assert1(read, "Invalid argument %s\n", argv[1]);
MSG_process_sleep(10);
sprintf(mailbox, "receiver-%d", id);
xbt_assert1(read, "Invalid argument %s\n", argv[1]);
MSG_process_sleep(10);
sprintf(mailbox, "receiver-%d", id);