aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_get.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 13:38:50 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-05 13:38:50 +0100
commit0701cef3492d9c6d037abbe7c116dd22b9ab8a0c (patch)
tree616fbbe92c6edfdbc3f473fb90edf6da8d8737bb /src/ft_select_get.c
parentDon't mess with me boy (diff)
download42-cub3d-0701cef3492d9c6d037abbe7c116dd22b9ab8a0c.tar.gz
42-cub3d-0701cef3492d9c6d037abbe7c116dd22b9ab8a0c.tar.bz2
42-cub3d-0701cef3492d9c6d037abbe7c116dd22b9ab8a0c.tar.xz
42-cub3d-0701cef3492d9c6d037abbe7c116dd22b9ab8a0c.tar.zst
42-cub3d-0701cef3492d9c6d037abbe7c116dd22b9ab8a0c.zip
Better code
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r--src/ft_select_get.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c
index 74cd000..188a6de 100644
--- a/src/ft_select_get.c
+++ b/src/ft_select_get.c
@@ -60,14 +60,13 @@ static int8_t
ret++;
if (ret == 8)
ret = 12;
- ret = ft_check_exists(ret, clist);
- return (ret);
+ return (ret = ft_check_exists(ret, clist));
}
-uint8_t
+int8_t
ft_select_get(char **words, t_cub *clist)
{
- int (*fun_ptr[8])(char**, t_cub*);
+ int8_t (*fun_ptr[8])(char**, t_cub*);
int8_t id;
fun_ptr[0] = ft_get_res;