From cb2e29d18b22ef284fb9f2a6e49691cc83355c5d Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 19 Apr 2023 14:50:51 +0000 Subject: [PATCH] prepare to add a verif thread --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++; }