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_err.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 '')
-rw-r--r-- | src/b_sqb_err.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/b_sqb_err.c b/src/b_sqb_err.c index d530de5..697bca8 100644 --- a/src/b_sqb_err.c +++ b/src/b_sqb_err.c @@ -11,13 +11,12 @@ /* ************************************************************************** */ #include <libft.h> -#include <stdint.h> #include <unistd.h> #include "d_define.h" #include "u_utils.h" -static uint8_t b_single_op(const uint64_t argc, char *argv[]) +static unsigned char b_single_op(const unsigned long argc, char *argv[]) { if (argc > 3) { @@ -27,7 +26,7 @@ static uint8_t b_single_op(const uint64_t argc, char *argv[]) return (0); } -static uint8_t b_expect_arg(const uint64_t argc, char *argv[]) +static unsigned char b_expect_arg(const unsigned long argc, char *argv[]) { if (argc == 3) { @@ -37,7 +36,7 @@ static uint8_t b_expect_arg(const uint64_t argc, char *argv[]) return (0); } -static uint8_t b_double_op(const uint64_t argc, char *argv[]) +static unsigned char b_double_op(const unsigned long argc, char *argv[]) { if (argc > 4) { @@ -47,7 +46,7 @@ static uint8_t b_double_op(const uint64_t argc, char *argv[]) return (0); } -static uint8_t b_bad_nbr(char *argv[]) +static unsigned char b_bad_nbr(char *argv[]) { char *ptr; @@ -76,9 +75,9 @@ static uint8_t b_bad_nbr(char *argv[]) return (0); } -uint8_t b_sqb_err_check(uint8_t id, char *argv[]) +unsigned char b_sqb_err_check(unsigned char id, char *argv[]) { - const uint64_t argc = u_builtins_get_argc((const char**)argv); + const unsigned long argc = u_builtins_get_argc((const char**)argv); if (id >= B_ID_SQB_NT) { |