From 8866ef5699150d0549096efa94fc311ff7a48dc7 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 3 Mar 2020 14:47:33 +0100 Subject: Changing stuff --- src/ft_get_path_nl.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ft_get_path_nl.c') diff --git a/src/ft_get_path_nl.c b/src/ft_get_path_nl.c index b14595f..c702129 100644 --- a/src/ft_get_path_nl.c +++ b/src/ft_get_path_nl.c @@ -19,23 +19,23 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) { - ft_sprintf(clist->errmsg, FT_ERR_ARGS); + ft_sprintf(clist.errmsg, FT_ERR_ARGS); return (-1); } if (ft_check_ext(*(words + 1), ".cub") < 0) { - ft_sprintf(clist->errmsg, FT_ERR_NOT_A_CUB); + ft_sprintf(clist.errmsg, FT_ERR_NOT_A_CUB); return (-1); } - ft_memdel((void**)&clist->mlist->nlevel_path); - if (!(clist->mlist->nlevel_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist.mlist.nlevel_path); + if (!(clist.mlist.nlevel_path = ft_strdup(*(words + 1)))) { - ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE); + ft_sprintf(clist.errmsg, FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist->mlist->nlevel_path) < 0) + if (ft_check_not_found(clist.mlist.nlevel_path) < 0) { - ft_sprintf(clist->errmsg, FT_ERR_RD_NL_MAP); + ft_sprintf(clist.errmsg, FT_ERR_RD_NL_MAP); return (-1); } return (0); -- cgit v1.2.3 From ce43b1cd1caa539af687425f58a6999a20807878 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 3 Mar 2020 16:14:26 +0100 Subject: Going full stack is bav --- src/ft_get_path_nl.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ft_get_path_nl.c') diff --git a/src/ft_get_path_nl.c b/src/ft_get_path_nl.c index c702129..68de5c6 100644 --- a/src/ft_get_path_nl.c +++ b/src/ft_get_path_nl.c @@ -19,23 +19,23 @@ int8_t { if (!(*words) || !(*(words + 1)) || (*(words + 2))) { - ft_sprintf(clist.errmsg, FT_ERR_ARGS); + ft_sprintf(clist->errmsg, FT_ERR_ARGS); return (-1); } if (ft_check_ext(*(words + 1), ".cub") < 0) { - ft_sprintf(clist.errmsg, FT_ERR_NOT_A_CUB); + ft_sprintf(clist->errmsg, FT_ERR_NOT_A_CUB); return (-1); } - ft_memdel((void**)&clist.mlist.nlevel_path); - if (!(clist.mlist.nlevel_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.nlevel_path); + if (!(clist->mlist.nlevel_path = ft_strdup(*(words + 1)))) { - ft_sprintf(clist.errmsg, FT_ERR_ALLOCATE); + ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist.mlist.nlevel_path) < 0) + if (ft_check_not_found(clist->mlist.nlevel_path) < 0) { - ft_sprintf(clist.errmsg, FT_ERR_RD_NL_MAP); + ft_sprintf(clist->errmsg, FT_ERR_RD_NL_MAP); return (-1); } return (0); -- cgit v1.2.3