summaryrefslogtreecommitdiffstats
path: root/src/b_sqb_err.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/b_sqb_err.c')
-rw-r--r--src/b_sqb_err.c13
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)
{