diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
commit | c5aae008dee36276154882d8fd56c3bdeb473474 (patch) | |
tree | a40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/b_sqb.c | |
parent | TODO update (diff) | |
download | 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip |
Now norme
Diffstat (limited to 'src/b_sqb.c')
-rw-r--r-- | src/b_sqb.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/b_sqb.c b/src/b_sqb.c index 4ffb001..1c24e7f 100644 --- a/src/b_sqb.c +++ b/src/b_sqb.c @@ -11,7 +11,6 @@ /* ************************************************************************** */ #include <libft.h> -#include <stdint.h> #include <unistd.h> #include "b_sqb_err.h" @@ -22,9 +21,9 @@ #include "s_struct.h" #include "u_utils.h" -static uint8_t b_get_sqb_id(char *argv[], t_msh *msh) +static unsigned char b_get_sqb_id(char *argv[], t_msh *msh) { - uint8_t i; + unsigned char i; i = 0; while (i < B_ID_SQB_COUNT) @@ -44,10 +43,10 @@ static uint8_t b_get_sqb_id(char *argv[], t_msh *msh) return (i); } -static uint8_t b_eval_sqb(char *argv[], t_msh *msh) +static unsigned char b_eval_sqb(char *argv[], t_msh *msh) { - uint8_t id; - uint8_t ret; + unsigned char id; + unsigned char ret; id = b_get_sqb_id(argv, msh); if (id == B_ID_SQB_COUNT) @@ -70,9 +69,9 @@ static uint8_t b_eval_sqb(char *argv[], t_msh *msh) return (ret); } -uint8_t b_sqb(char *args[], t_msh *msh) +unsigned char b_sqb(char *args[], t_msh *msh) { - const uint64_t argc = u_builtins_get_argc((const char**)args); + const unsigned long argc = u_builtins_get_argc((const char**)args); if (ft_strncmp(args[argc - 1], "]", 2) != 0) { |