fix warning
This commit is contained in:
parent
4eadb9fc98
commit
6f5414f58b
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ int sched_spawn(taskfunc f, void *closure, struct scheduler *s) {
|
||||||
int errno;
|
int errno;
|
||||||
|
|
||||||
// Création d'un thread pour la tâche
|
// Création d'un thread pour la tâche
|
||||||
if ((errno = pthread_create(&thread, NULL, (void *)f, closure)) != 0) {
|
if ((errno = pthread_create(&thread, NULL, (void *(*)(void *))f, closure)) !=
|
||||||
|
0) {
|
||||||
fprintf(stderr, "pthread_create error %d\n", errno);
|
fprintf(stderr, "pthread_create error %d\n", errno);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue