Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / examples / s4u / app-masterworkers / s4u-app-masterworkers-fun.cpp
index e63565fb878ccef9aa841c8af474b7ff16a2e23d..fefc90c27843692acf1f89974e41b0f4d700fd68 100644 (file)
@@ -1,10 +1,11 @@
-/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2019. 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. */
 
-/* This is part of the following tutorial:                                  */
-/*    https://simgrid.frama.io/simgrid/usecase_algorithms.html              */
+/* ************************************************************************* */
+/* Take this tutorial online: https://simgrid.frama.io/simgrid/tuto_s4u.html */
+/* ************************************************************************* */
 
 #include <simgrid/s4u.hpp>
 
@@ -48,7 +49,7 @@ static void worker(std::vector<std::string> args)
 {
   xbt_assert(args.size() == 1, "The worker expects no argument");
 
-  auto my_host                     = simgrid::s4u::this_actor::get_host();
+  simgrid::s4u::Host* my_host      = simgrid::s4u::this_actor::get_host();
   simgrid::s4u::MailboxPtr mailbox = simgrid::s4u::Mailbox::by_name(my_host->get_name());
 
   double compute_cost;