From 478f4e174054f857dfe116a912cec8398495b166 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 9 Feb 2020 20:10:21 +0100 Subject: Better names --- src/ft_init_lists.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 8cea58b..a30e166 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -89,21 +89,21 @@ static t_cub } int8_t - ft_init_cub3d(t_cub **cl) + ft_init_cub3d(t_cub **clist) { - t_cub *clist; + t_cub *cl; - if (!(clist = ft_init_cub())) + if (!(cl = ft_init_cub())) { - ft_memdel((void**)&clist); + ft_memdel((void**)&cl); return (-1); } - if (!(clist->wlist = ft_init_win())) + if (!(cl->wlist = ft_init_win())) { - ft_memdel((void**)&clist->wlist); - ft_memdel((void**)&clist); + ft_memdel((void**)&cl->wlist); + ft_memdel((void**)&cl); return (-1); } - *cl = clist; + *clist = cl; return (0); } -- cgit v1.2.3