Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Clearly state that we don't care about the return code of actors
[simgrid.git] / examples / s4u / actor-create / s4u-actor-create.cpp
index 9809d5f..bff3790 100644 (file)
@@ -44,7 +44,7 @@ static void receiver(const std::string& mailbox_name)
 }
 
 /* Our second class of actors is also a function */
-static int forwarder(int argc, char** argv)
+static void forwarder(int argc, char** argv)
 {
   xbt_assert(argc >= 3, "Actor forwarder requires 2 parameters, but got only %d", argc - 1);
   simgrid::s4u::Mailbox* in    = simgrid::s4u::Mailbox::by_name(argv[1]);
@@ -52,7 +52,6 @@ static int forwarder(int argc, char** argv)
   std::string* msg             = static_cast<std::string*>(in->get());
   XBT_INFO("Forward '%s'.", msg->c_str());
   out->put(msg, msg->size());
-  return 0;
 }
 
 /* Declares a third class of actors which sends a message to the mailbox 'mb42'.