Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
one more lib to exclude ... we should really get rid of this in MC, no?
[simgrid.git] / examples / c / actor-exiting / actor-exiting.c
index 330587df8d9345e296388029fc9e522e3dba451c..4760f88cec0d629c51a477293b1a2876f2e406bc 100644 (file)
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(actor_exiting, "Messages specific for this example");
 
-static int A_on_exit(XBT_ATTRIB_UNUSED int ignored1, XBT_ATTRIB_UNUSED void* ignored2)
+static void A_on_exit(int ignored1, void* ignored2)
 {
   XBT_INFO("I stop now");
-  return 0;
 }
 
-static void actorA_fun(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void actorA_fun(int argc, char* argv[])
 {
   // Register a lambda function to be executed once it stops
   sg_actor_on_exit(&A_on_exit, NULL);
 
   sg_actor_sleep_for(1);
 }
-static void actorB_fun(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void actorB_fun(int argc, char* argv[])
 {
   sg_actor_sleep_for(2);
 }
-static int C_on_exit(int failed, XBT_ATTRIB_UNUSED void* ignored2)
+static void C_on_exit(int failed, void* ignored2)
 {
   if (failed) {
     XBT_INFO("I was killed!");
@@ -53,9 +52,8 @@ static int C_on_exit(int failed, XBT_ATTRIB_UNUSED void* ignored2)
       xbt_backtrace_display_current();
   } else
     XBT_INFO("Exiting gracefully.");
-  return 0;
 }
-static void actorC_fun(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void actorC_fun(int argc, char* argv[])
 {
   // Register a lambda function to be executed once it stops
   sg_actor_on_exit(&C_on_exit, NULL);