Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adapt masterslave_bypass to the brand new AS tag.
[simgrid.git] / examples / msg / masterslave / masterslave_failure.c
index 65148e3..330250d 100644 (file)
@@ -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. */
@@ -86,7 +85,7 @@ int master(int argc, char *argv[])
         ("Mmh. Something went wrong with '%s'. Nevermind. Let's keep going!",
          slaves[i % slaves_count]->name);
       MSG_task_destroy(task);
-    } else if (a == MSG_TIMEOUT_FAILURE) {
+    } else if (a == MSG_TIMEOUT) {
       INFO1
         ("Mmh. Got timeouted while speaking to '%s'. Nevermind. Let's keep going!",
          slaves[i % slaves_count]->name);
@@ -112,7 +111,7 @@ int master(int argc, char *argv[])
       INFO1("Mmh. Can't reach '%s'! Nevermind. Let's keep going!",
             slaves[i]->name);
       MSG_task_destroy(task);
-    } else if (a == MSG_TIMEOUT_FAILURE) {
+    } else if (a == MSG_TIMEOUT) {
       INFO1
         ("Mmh. Got timeouted while speaking to '%s'. Nevermind. Let's keep going!",
          slaves[i % slaves_count]->name);
@@ -182,7 +181,7 @@ MSG_error_t test_all(const char *platform_file, const char *application_file)
 {
   MSG_error_t res = MSG_OK;
 
-  /* MSG_config("workstation_model","KCCFLN05"); */
+  /* MSG_config("workstation/model","KCCFLN05"); */
   {                             /*  Simulation setting */
     MSG_set_channel_number(MAX_CHANNEL);
     MSG_create_environment(platform_file);