]> AND Public Git Repository - simgrid.git/blobdiff - examples/msg/masterslave/masterslave_mailbox.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correct implementation of start/end tags when bypassing the parser.
[simgrid.git] / examples / msg / masterslave / masterslave_mailbox.c
index e614a3400fa449db6e09dd0016107bfbebbd6470..80497e5aba3545ef2e0206898880c8c9f3062d5c 100644 (file)
@@ -1,6 +1,5 @@
-/*     $Id$     */
-
-/* Copyright (c) 2002,2003,2004 Arnaud Legrand. All rights reserved.        */
+/* Copyright (c) 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. */
@@ -50,7 +49,8 @@ int master(int argc, char *argv[])
      char mailbox[80]; 
     
      sprintf(mailbox,"slave-%ld",i % slaves_count); 
-     MSG_task_send(MSG_task_create("finalize", 0, 0, 0), mailbox); 
+     m_task_t finalize = MSG_task_create ("finalize", 0, 0, 0);
+     MSG_task_send(finalize, mailbox);
    } 
   
 //  INFO0("Goodbye now!");