X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f54e5c450791e19b01f31e86c93e5a603fd0c4b..1a042c3771c14fdc9ec1a98ca60fc70ed933dc17:/examples/msg/masterslave/masterslave_forwarder.c diff --git a/examples/msg/masterslave/masterslave_forwarder.c b/examples/msg/masterslave/masterslave_forwarder.c index c1eb978451..b1a28cfca3 100644 --- a/examples/msg/masterslave/masterslave_forwarder.c +++ b/examples/msg/masterslave/masterslave_forwarder.c @@ -1,6 +1,5 @@ -/* $Id$ */ - -/* Copyright (c) 2002,2003,2004 Arnaud Legrand. All rights reserved. */ +/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -37,7 +36,6 @@ int master(int argc, char *argv[]) double task_comp_size = 0; double task_comm_size = 0; - int i; xbt_assert1(sscanf(argv[1], "%d", &number_of_tasks), @@ -88,9 +86,10 @@ int master(int argc, char *argv[]) INFO0 ("All tasks have been dispatched. Let's tell everybody the computation is over."); - for (i = 0; i < slaves_count; i++) - MSG_task_put(MSG_task_create("finalize", 0, 0, FINALIZE), - slaves[i], PORT_22); + for (i = 0; i < slaves_count; i++){ + m_task_t finalize=MSG_task_create("finalize", 0, 0, FINALIZE); + MSG_task_put(finalize, slaves[i], PORT_22); + } INFO0("Goodbye now!"); free(slaves);