diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-09 20:10:21 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-09 20:10:21 +0100 |
commit | 478f4e174054f857dfe116a912cec8398495b166 (patch) | |
tree | cace89edf5effbc903e6d3a4f7c7acd6f833eb5c | |
parent | Clean norme (diff) | |
download | 42-cub3d-478f4e174054f857dfe116a912cec8398495b166.tar.gz 42-cub3d-478f4e174054f857dfe116a912cec8398495b166.tar.bz2 42-cub3d-478f4e174054f857dfe116a912cec8398495b166.tar.xz 42-cub3d-478f4e174054f857dfe116a912cec8398495b166.tar.zst 42-cub3d-478f4e174054f857dfe116a912cec8398495b166.zip |
Better names
Diffstat (limited to '')
-rw-r--r-- | src/ft_init_lists.c | 16 |
1 files 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); } |