X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/df12bbc75c274351f3b3a628740e0b3270f08e18..868e0f3359e8a2a890dc88637dfa699dbcb5c24c:/examples/msg/masterslave/masterslave_arg.c diff --git a/examples/msg/masterslave/masterslave_arg.c b/examples/msg/masterslave/masterslave_arg.c index 2e8166a727..873fedbf90 100644 --- a/examples/msg/masterslave/masterslave_arg.c +++ b/examples/msg/masterslave/masterslave_arg.c @@ -36,7 +36,7 @@ int master(int argc, char *argv[]) for (i = 1; i <= number_of_jobs; i++) { char mailbox[256]; char sprintf_buffer[256]; - m_task_t task = NULL; + msg_task_t task = NULL; sprintf(mailbox, "slave-%ld", i % number_of_slaves); sprintf(sprintf_buffer, "Task_%d", i); @@ -55,7 +55,7 @@ int master(int argc, char *argv[]) char mailbox[80]; sprintf(mailbox, "slave-%ld", i % number_of_slaves); - m_task_t finalize = MSG_task_create("finalize", 0, 0, 0); + msg_task_t finalize = MSG_task_create("finalize", 0, 0, 0); MSG_task_send(finalize, mailbox); } @@ -66,7 +66,7 @@ int master(int argc, char *argv[]) /** Receiver function */ int slave(int argc, char *argv[]) { - m_task_t task = NULL; + msg_task_t task = NULL; _XBT_GNUC_UNUSED int res; XBT_DEBUG("mailbox: %s",MSG_process_get_name(MSG_process_self())); @@ -92,7 +92,7 @@ int slave(int argc, char *argv[]) /** Main function */ int main(int argc, char *argv[]) { - MSG_error_t res = MSG_OK; + msg_error_t res = MSG_OK; long i; MSG_init(&argc, argv); @@ -138,8 +138,6 @@ int main(int argc, char *argv[]) XBT_INFO("Simulation time %g", MSG_get_clock()); - MSG_clean(); - if (res == MSG_OK) return 0; else