Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add keyword horizontal scaling to doc
[simgrid.git] / examples / c / actor-lifetime / actor-lifetime.c
index 25ac97e1acc0d9ba947f9e213b5820c43179e53b..73e033f79a94e68237cb6aba2417e5ddf2094b6f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2023. 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. */
 XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Messages specific for this example");
 
 /* Executed on actor termination*/
-static int my_onexit(XBT_ATTRIB_UNUSED int ignored1, XBT_ATTRIB_UNUSED void* ignored2)
+static void my_onexit(int ignored1, void* ignored2)
 {
   XBT_INFO("Exiting now (done sleeping or got killed)."); /* - Just display an informative message (see tesh file) */
-  return 0;
 }
 
 /* Just sleep until termination */
-static void sleeper(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void sleeper(int argc, char* argv[])
 {
   sg_actor_on_exit(my_onexit, NULL);
 
@@ -35,7 +34,7 @@ int main(int argc, char* argv[])
   simgrid_init(&argc, argv);
   xbt_assert(argc > 2,
              "Usage: %s platform_file deployment_file\n"
-             "\tExample: %s msg_platform.xml msg_deployment.xml\n",
+             "\tExample: %s platform.xml deployment.xml\n",
              argv[0], argv[0]);
 
   simgrid_load_platform(argv[1]); /* - Load the platform description */