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
Fix #include
[simgrid.git]
/
examples
/
msg
/
icomms
/
peer2.c
diff --git
a/examples/msg/icomms/peer2.c
b/examples/msg/icomms/peer2.c
index
138883e
..
22c4aff
100644
(file)
--- a/
examples/msg/icomms/peer2.c
+++ b/
examples/msg/icomms/peer2.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-201
4
. The SimGrid Team.
+/* Copyright (c) 2010-201
5
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-69,11
+69,11
@@
int sender(int argc, char *argv[])
int receiver(int argc, char *argv[])
{
msg_task_t task = NULL;
int receiver(int argc, char *argv[])
{
msg_task_t task = NULL;
-
_XBT_GNUC
_UNUSED msg_error_t res;
+
XBT_ATTRIB
_UNUSED msg_error_t res;
int id = -1;
char mailbox[80];
msg_comm_t res_irecv;
int id = -1;
char mailbox[80];
msg_comm_t res_irecv;
-
_XBT_GNUC
_UNUSED int read;
+
XBT_ATTRIB
_UNUSED int read;
read = sscanf(argv[1], "%d", &id);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
MSG_process_sleep(10);
read = sscanf(argv[1], "%d", &id);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
MSG_process_sleep(10);