summaryrefslogtreecommitdiffstats
path: root/src/b_alias.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/b_alias.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/b_alias.c b/src/b_alias.c
index 62c2e5e..7526064 100644
--- a/src/b_alias.c
+++ b/src/b_alias.c
@@ -11,7 +11,6 @@
/* ************************************************************************** */
#include <libft.h>
-#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef __linux__
@@ -26,7 +25,7 @@
#include "u_alias.h"
#include "u_utils.h"
-static uint8_t b_print_arg_next(char *ptr,
+static unsigned char b_print_arg_next(char *ptr,
const char arg[],
t_bool invalid,
t_msh *msh)
@@ -57,7 +56,7 @@ static uint8_t b_print_arg_next(char *ptr,
return (0);
}
-static uint8_t b_print_arg(const char arg[], t_msh *msh)
+static unsigned char b_print_arg(const char arg[], t_msh *msh)
{
char *ptr;
t_bool invalid;
@@ -93,11 +92,11 @@ static void b_register_arg(const char arg[], t_msh *msh)
}
}
-uint8_t b_alias(char *args[], t_msh *msh)
+unsigned char b_alias(char *args[], t_msh *msh)
{
- const uint64_t argc = u_builtins_get_argc((const char**)args);
- int32_t i;
- uint8_t ret;
+ const unsigned long argc = u_builtins_get_argc((const char**)args);
+ int i;
+ unsigned char ret;
ret = 0;
if (argc == 0)
@@ -123,8 +122,8 @@ uint8_t b_alias(char *args[], t_msh *msh)
void b_alias_mute(char *args[], t_msh *msh)
{
- const uint64_t argc = u_builtins_get_argc((const char**)args);
- int32_t i;
+ const unsigned long argc = u_builtins_get_argc((const char**)args);
+ int i;
if (argc > 0)
{