]> AND Public Git Repository - simgrid.git/blobdiff - examples/s4u/cloud-simple/s4u-cloud-simple.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
automatically determine the core amount
[simgrid.git] / examples / s4u / cloud-simple / s4u-cloud-simple.cpp
index 08a341ab8341d84ad1c5ef789f95048d41f4456f..9e355c42dfeaa40a6881b6d665abe1bf77e63bb5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2020. 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. */
@@ -47,7 +47,7 @@ static void communication_rx_fun(std::vector<std::string> args)
   const char* host_name         = simgrid::s4u::this_actor::get_host()->get_cname();
   simgrid::s4u::Mailbox* mbox   = simgrid::s4u::Mailbox::by_name(args.at(0));
 
-  struct s_payload* payload = static_cast<struct s_payload*>(mbox->get());
+  const s_payload* payload  = static_cast<struct s_payload*>(mbox->get());
   double clock_end          = simgrid::s4u::Engine::get_clock();
 
   XBT_INFO("%s:%s to %s:%s => %g sec", payload->tx_host->get_cname(), payload->tx_actor_name, host_name, actor_name,