X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3ed8aa541e5fa7bbce220922f7ea8d597c0d2dde..9f21f35eadfc5d1f43d3e7a4b591711fd7fb9616:/examples/msg/energy-pstate/energy-pstate.c diff --git a/examples/msg/energy-pstate/energy-pstate.c b/examples/msg/energy-pstate/energy-pstate.c index fc055b7e22..09019696a7 100644 --- a/examples/msg/energy-pstate/energy-pstate.c +++ b/examples/msg/energy-pstate/energy-pstate.c @@ -69,8 +69,6 @@ static int dvfs(int argc, char *argv[]) int main(int argc, char *argv[]) { - msg_error_t res = MSG_OK; - MSG_init(&argc, argv); xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]); @@ -80,7 +78,7 @@ int main(int argc, char *argv[]) MSG_process_create("dvfs_test", dvfs, NULL, MSG_get_host_by_name("MyHost1")); MSG_process_create("dvfs_test", dvfs, NULL, MSG_get_host_by_name("MyHost2")); - res = MSG_main(); + msg_error_t res = MSG_main(); XBT_INFO("Total simulation time: %e", MSG_get_clock());