X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4b597ac2a550a08c142293e59e4c4d2bdad8ff5d..9f21f35eadfc5d1f43d3e7a4b591711fd7fb9616:/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 37f477bea4..a162ffe032 100644 --- a/examples/msg/task-priority/task-priority.c +++ b/examples/msg/task-priority/task-priority.c @@ -1,5 +1,4 @@ -/* Copyright (c) 2007-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2007-2016. 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. */ @@ -7,12 +6,6 @@ #include "simgrid/msg.h" XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example"); -/** @addtogroup MSG_examples - * - * - priority/priority.c: Demonstrates the use of @ref - * MSG_task_set_priority to change the computation priority of a given task. - */ - static int test(int argc, char *argv[]) { double computation_amount = xbt_str_parse_double(argv[1], "Invalid argument: %s"); @@ -31,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]); @@ -41,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());