From: navarrop Date: Thu, 17 Feb 2011 09:59:49 +0000 (+0000) Subject: Correction of problems from commit 9644 X-Git-Tag: v3.6_beta2~291 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f9dd7412281e42ac1c4ef82da3dbc67d2372b77a?ds=inline Correction of problems from commit 9644 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9646 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/icomms/peer2.c b/examples/msg/icomms/peer2.c index 7f60c2cbe0..587deda1d7 100644 --- a/examples/msg/icomms/peer2.c +++ b/examples/msg/icomms/peer2.c @@ -66,7 +66,7 @@ int receiver(int argc, char *argv[]) int id = -1; char mailbox[80]; msg_comm_t res_irecv; - int read = sscanf(argv[1], "%d", &id) + int read = sscanf(argv[1], "%d", &id); xbt_assert1(read, "Invalid argument %s\n", argv[1]); MSG_process_sleep(10); sprintf(mailbox, "receiver-%d", id); diff --git a/examples/msg/icomms/peer3.c b/examples/msg/icomms/peer3.c index 8b22f55b15..417893d0e7 100644 --- a/examples/msg/icomms/peer3.c +++ b/examples/msg/icomms/peer3.c @@ -69,7 +69,7 @@ int sender(int argc, char *argv[]) task = NULL; res_irecv = MSG_task_irecv(&(task), mailbox); res_wait = MSG_comm_wait(res_irecv, -1); - xbt_assert0(res == MSG_OK, "MSG_comm_wait failed"); + xbt_assert0(res_wait == MSG_OK, "MSG_comm_wait failed"); MSG_comm_destroy(res_irecv); MSG_task_destroy(task); }