X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/93cdf2806f1b01f205897e8fd6434be1b0ee0141..ae68749ec3d90fc5e403e8a4950d30b832a9629f:/examples/msg/task-priority/task-priority.c diff --git a/examples/msg/task-priority/task-priority.c b/examples/msg/task-priority/task-priority.c index d852f521ea..a162ffe032 100644 --- a/examples/msg/task-priority/task-priority.c +++ b/examples/msg/task-priority/task-priority.c @@ -24,8 +24,6 @@ static int test(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 deployment_file\n" "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]); @@ -34,7 +32,7 @@ int main(int argc, char *argv[]) MSG_function_register("test", test); MSG_launch_application(argv[2]); - res = MSG_main(); + msg_error_t res = MSG_main(); XBT_INFO("Simulation time %g", MSG_get_clock());