X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e5cc1bfb9f7d7693341c33a6e0a6906f447791e..de054f9c7a56304ef1227a0664eba51161e9a8a4:/examples/c/energy-vm/energy-vm.c diff --git a/examples/c/energy-vm/energy-vm.c b/examples/c/energy-vm/energy-vm.c index 04aaef1186..4b5aa6d1fb 100644 --- a/examples/c/energy-vm/energy-vm.c +++ b/examples/c/energy-vm/energy-vm.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,13 +14,13 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(energy_vm, "Messages of this example"); -static void worker_func(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]) +static void worker_func(int argc, char* argv[]) { sg_actor_execute(300E6); XBT_INFO("This worker is done."); } -static void dvfs(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]) +static void dvfs(int argc, char* argv[]) { sg_host_t host1 = sg_host_by_name("MyHost1"); sg_host_t host2 = sg_host_by_name("MyHost2"); @@ -60,7 +60,7 @@ int main(int argc, char* argv[]) sg_host_energy_plugin_init(); 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]);