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