summaryrefslogtreecommitdiffstats
path: root/src/b_alias.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
commitc5aae008dee36276154882d8fd56c3bdeb473474 (patch)
treea40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/b_alias.c
parentTODO update (diff)
download42-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_alias.c')
-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)
{