Normed all the stuff

This commit is contained in:
Raphael 2024-07-24 20:24:56 +02:00
parent 07dae4049c
commit ba0b395a05
2 changed files with 3 additions and 8 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/04 11:30:25 by rparodi #+# #+# */
/* Updated: 2024/07/24 16:15:16 by rparodi ### ########.fr */
/* Updated: 2024/07/24 20:22:29 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -15,7 +15,7 @@
void *ft_routine(void *ptr)
{
t_philo *philo;
t_usize nb_group;
t_usize nb_group;
nb_group = 2;
philo = (t_philo *) ptr;

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/04 11:42:37 by rparodi #+# #+# */
/* Updated: 2024/07/24 16:05:12 by rparodi ### ########.fr */
/* Updated: 2024/07/24 20:23:09 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -84,11 +84,6 @@ t_error ft_init_philo(t_i32 argc, t_str *argv, t_program *prog, t_mutex *forks)
prog->philos[i].r_fork = &forks[prog->philos[i].nb_philo - 1];
else
prog->philos[i].r_fork = &forks[i - 1];
if (prog->philos[0].nb_philo % 2 == 1 && i == prog->philos[0].nb_philo)
{
prog->philos[i].l_fork = &forks[0];
prog->philos[i].r_fork = &forks[i];
}
prog->philos[i].l_fork = &forks[i];
i++;
}