Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define worker_function more rigourously to xbt_main_func_t.
authorMatthieu Volat <mazhe@alkumuna.eu>
Tue, 23 May 2017 17:20:54 +0000 (19:20 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Tue, 23 May 2017 19:31:55 +0000 (21:31 +0200)
examples/msg/energy-vm/energy-vm.c

index 8a2011d..9b5d84b 100644 (file)
@@ -9,7 +9,9 @@
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(energy_vm, "Messages of this example");
 
-static int worker_func() {
+static int worker_func(int argc, char *argv[]) {
+  (void)argc;
+  (void)argv;
   msg_task_t task1 = MSG_task_create("t1", 300E6, 0, NULL);
   MSG_task_execute (task1);
   MSG_task_destroy(task1);