X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c1a6059a5e825600a240878638311aa572746ad..f973433226af2e2e3059b62578bb0f3b215380fb:/examples/c/actor-suspend/actor-suspend.c diff --git a/examples/c/actor-suspend/actor-suspend.c b/examples/c/actor-suspend/actor-suspend.c index 01ed3c0f09..d38034d2a1 100644 --- a/examples/c/actor-suspend/actor-suspend.c +++ b/examples/c/actor-suspend/actor-suspend.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2020. The SimGrid Team. +/* Copyright (c) 2007-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -14,7 +14,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(actor_suspend, "Messages specific for this example"); /* The Lazy guy only wants to sleep, but can be awaken by the dream_master actor. */ -static void lazy_guy(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]) +static void lazy_guy(int argc, char* argv[]) { XBT_INFO("Nobody's watching me ? Let's go to sleep."); sg_actor_suspend(sg_actor_self()); /* - Start by suspending itself */ @@ -35,7 +35,7 @@ static void lazy_guy(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]) } /* The Dream master: */ -static void dream_master(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]) +static void dream_master(int argc, char* argv[]) { XBT_INFO("Let's create a lazy guy."); /* - Create a lazy_guy actor */ sg_actor_t lazy = sg_actor_create("Lazy", sg_host_self(), lazy_guy, 0, NULL); @@ -73,7 +73,7 @@ static void dream_master(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* arg int main(int argc, char* argv[]) { simgrid_init(&argc, argv); - xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); + xbt_assert(argc > 1, "Usage: %s platform_file\n\tExample: %s platform.xml\n", argv[0], argv[0]); simgrid_load_platform(argv[1]); simgrid_register_function("dream_master", dream_master);