From d552a2af95a3e03f937a94945369536d1eaae74a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 10 Jan 2021 13:34:50 +0100 Subject: Updated philo_two with better setup, Norming philo_two --- philo_three/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'philo_three/src/main.c') diff --git a/philo_three/src/main.c b/philo_three/src/main.c index 64b1004..e3f3022 100644 --- a/philo_three/src/main.c +++ b/philo_three/src/main.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/15 00:45:24 by cacharle #+# #+# */ -/* Updated: 2021/01/09 15:57:47 by charles ### ########.fr */ +/* Updated: 2021/01/10 13:23:54 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -116,7 +116,7 @@ int main(int argc, char **argv) if (conf.meal_num != -1) { pthread_t thread_meal_num; - pthread_create(&thread_meal_num, NULL, (t_routine)st_routine_meal_num, (void*)&conf); + pthread_create(&thread_meal_num, NULL, (t_routine)st_routine_meal_num, &conf); pthread_detach(thread_meal_num); } sem_wait(conf.sem_finish); -- cgit