aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c6
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)