diff --git a/main.c b/main.c index becc478..3a27dc8 100644 --- a/main.c +++ b/main.c @@ -43,7 +43,7 @@ void stop(t_data *data) pthread_mutex_unlock(&data->stop_mutex); } -void check_routine(t_data *data) +void *check_routine(t_data *data) { size_t i; bool ok; @@ -55,7 +55,7 @@ void check_routine(t_data *data) { stop(data); printf("g pu faim\n"); - return ; + return (NULL); } i = 0; while (i < data->nb_philos) @@ -68,7 +68,7 @@ void check_routine(t_data *data) { print_died(philo); stop(data); - return ; + return (NULL); } i++; }