aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_empty_line.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-27 19:20:28 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-27 19:20:28 +0100
commit0c2bb0f610c0af0680b46fc4566a207d59781e4d (patch)
tree986d6dd6a19416593c9b2c043312ffa5d4f0be73 /src/ft_check_empty_line.c
parentin progress (diff)
download42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.gz
42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.bz2
42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.xz
42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.zst
42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.zip
Switched lists entierly
Diffstat (limited to '')
-rw-r--r--src/ft_check_empty_line.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_check_empty_line.c b/src/ft_check_empty_line.c
index 5515c90..5f98f7d 100644
--- a/src/ft_check_empty_line.c
+++ b/src/ft_check_empty_line.c
@@ -2,19 +2,19 @@
#include <cub3d.h>
void
-ft_check_empty_line(int fd, unsigned int linum, t_win *wlist)
+ft_check_empty_line(int fd, unsigned int linum, t_cub *clist)
{
char *line;
if (get_next_line(fd, &line) <= 0)
{
ft_memdel(line);
- ft_map_error(linum, wlist);
+ ft_map_error(linum, clist);
}
if (*line)
{
ft_memdel(line);
- ft_map_error(linum, wlist);
+ ft_map_error(linum, clist);
}
ft_memdel(line);
}