Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simply say func(...) instead of (*func)(...) when func is a pointer to function.
[simgrid.git] / src / bindings / java / smx_context_java.c
index dc5a3dd..92005a4 100644 (file)
@@ -104,7 +104,7 @@ static void* smx_ctx_java_thread_run(void *data) {
   xbt_os_sem_acquire(context->begin);
   //Create the "Process" object if needed.
   if (context->super.argc > 0) {
-    (*(context->super.code))(context->super.argc, context->super.argv);
+    context->super.code(context->super.argc, context->super.argv);
   }
   else {
     smx_process_t process = SIMIX_process_self();