From 608ae732eccfe50f2727823f9aebe1f32681edfb Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 30 Sep 2020 08:46:00 +0200 Subject: Refactoring philo_two to work with new common lib (not working) --- philo_one/src/philo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'philo_one/src/philo.c') diff --git a/philo_one/src/philo.c b/philo_one/src/philo.c index 3e21490..fd14674 100644 --- a/philo_one/src/philo.c +++ b/philo_one/src/philo.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/09 23:47:14 by cacharle #+# #+# */ -/* Updated: 2020/09/30 08:10:55 by cacharle ### ########.fr */ +/* Updated: 2020/09/30 08:38:48 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -35,7 +35,7 @@ bool philos_start(t_philo *philos, t_routine_arg *routine_args, int num) while (++i < num) { if (pthread_create(&philos[i].thread, NULL, - (void *(*)(void*))routine_philo, (void*)(routine_args + i)) == -1) + (t_routine)routine_philo, (void*)(routine_args + i)) == -1) return (false); } return (true); -- cgit