diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 20:29:27 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-05 20:29:27 +0100 |
commit | a9744a89d31759cf9d5a03beede475ff18a9bf2b (patch) | |
tree | 4792abe0a77bafafd11456d95440ff7648cec563 /src/ft_parse_map.c | |
parent | int16_tamer (diff) | |
download | 42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.tar.gz 42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.tar.bz2 42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.tar.xz 42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.tar.zst 42-cub3d-a9744a89d31759cf9d5a03beede475ff18a9bf2b.zip |
Changed return values
Diffstat (limited to '')
-rw-r--r-- | src/ft_parse_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 64b590b..9112b5b 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -29,7 +29,7 @@ static void ft_dprintf(STDERR_FILENO, "Error\n"); ft_dprintf(STDERR_FILENO, "\033[31;1mMap is not a .cub\033[0m\n"); ft_free_words(words); - ft_exit(2, clist); + ft_exit(6, clist); } i = 0; while (words[i]) @@ -39,7 +39,7 @@ static void ft_dprintf(STDERR_FILENO, "Error\n"); ft_dprintf(STDERR_FILENO, "\033[31;1mMap is not a .cub\033[0m\n"); ft_free_words(words); - ft_exit(2, clist); + ft_exit(6, clist); } ft_free_words(words); } @@ -107,7 +107,7 @@ void { ft_dprintf(STDERR_FILENO, "Error\n"); ft_dprintf(STDERR_FILENO, "\033[31;1mNo map\033[0m\n"); - ft_exit(2, clist); + ft_exit(5, clist); } ret = 1; while (ret != 12 && ret != -1) |