typedef struct s_xbt_thread_ {
char *name;
smx_process_t s_process;
- void_f_pvoid_t *code;
+ void_f_pvoid_t code;
void *userparam;
void *father_data;
} s_xbt_thread_t;
return 0;
}
-xbt_thread_t xbt_thread_create(const char*name,void_f_pvoid_t* code, void* param) {
+xbt_thread_t xbt_thread_create(const char*name,void_f_pvoid_t code, void* param) {
xbt_thread_t res = xbt_new0(s_xbt_thread_t,1);
res->name = xbt_strdup(name);
res->userparam = param;