diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_parse_map.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 9c688fe..a93cca3 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -64,12 +64,14 @@ static int8_t return (ft_parse_it(fd, clist)); } if (ft_ischarset("1 ", line[0])) - return ((ft_get_map_first_line(line, clist) < 0) ? (-1) : (12)); + return ((ft_get_map_first_line(line, clist) < 0) ? + (-1) : (FT_PARSE_END_RET)); if (!ft_ischarset(FT_CHRST_VALID_PARSE, line[0]) || !(words = ft_split(line, ' '))) return (ft_error_here(FT_ERR_ILL_ENTRY, line, clist)); - if ((ret = ft_select_get(words, clist)) == 12) - return ((ft_get_map_first_line(line, clist) < 0) ? (-1) : (12)); + if ((ret = ft_select_get(words, clist)) == FT_PARSE_END_RET) + return ((ft_get_map_first_line(line, clist) < 0) ? + (-1) : (FT_PARSE_END_RET)); ft_memdel((void**)&line); return (ret); } @@ -97,7 +99,7 @@ void ft_error(FT_RET_NO_MAP, FT_ERR_NO_MAP, clist); ft_save_name(map_path, clist); ret = 1; - while (ret != 25 && ret >= 0) + while (ret != FT_PARSE_END_RET && ret >= 0) ret = ft_parse_it(fd, clist); (ret == -2) ? (ft_map_error(FT_ERR_ALR_SET, clist)) : 0; (ret == -1) ? (ft_map_error(clist->errmsg, clist)) : 0; |