summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-28 01:29:22 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-28 01:29:22 +0100
commitc238d805b24b1a1470c43192346988b1f3382f32 (patch)
tree65a350d90f5f8a1876d9e8f481050761f34b57b7
parentNorming (diff)
download42-minishell-c238d805b24b1a1470c43192346988b1f3382f32.tar.gz
42-minishell-c238d805b24b1a1470c43192346988b1f3382f32.tar.bz2
42-minishell-c238d805b24b1a1470c43192346988b1f3382f32.tar.xz
42-minishell-c238d805b24b1a1470c43192346988b1f3382f32.tar.zst
42-minishell-c238d805b24b1a1470c43192346988b1f3382f32.zip
Normed
-rw-r--r--src/b_alias.c8
-rw-r--r--src/b_h.c12
2 files changed, 10 insertions, 10 deletions
diff --git a/src/b_alias.c b/src/b_alias.c
index 8c9af00..02dfedb 100644
--- a/src/b_alias.c
+++ b/src/b_alias.c
@@ -26,9 +26,9 @@
#include "u_utils.h"
static unsigned char b_print_arg_next(char *ptr,
- const char arg[],
- t_bool invalid,
- t_msh *msh)
+ const char arg[],
+ t_bool invalid,
+ t_msh *msh)
{
char val[ARG_MAX];
@@ -123,7 +123,7 @@ unsigned char b_alias(char *args[], t_msh *msh)
void b_alias_mute(char *args[], t_msh *msh)
{
const unsigned long argc = u_builtins_get_argc((const char**)args);
- int i;
+ int i;
if (argc > 0)
{
diff --git a/src/b_h.c b/src/b_h.c
index 19d9bca..f6e1d59 100644
--- a/src/b_h.c
+++ b/src/b_h.c
@@ -45,7 +45,7 @@ static unsigned long b_get_total_hist(t_msh *msh)
return (total);
}
-static unsigned int b_print_prev_history(unsigned long asked,
+static unsigned int b_print_prev_history(unsigned long asked,
unsigned long total,
t_msh *msh)
{
@@ -74,9 +74,9 @@ static unsigned int b_print_prev_history(unsigned long asked,
return (i);
}
-static void b_print_history(unsigned long asked,
- unsigned long total,
- t_msh *msh)
+static void b_print_history(unsigned long asked,
+ unsigned long total,
+ t_msh *msh)
{
char *hist;
char *tok;
@@ -99,7 +99,7 @@ static void b_print_history(unsigned long asked,
ft_memdel((void*)&hist);
}
-static t_bool b_check_numeric(const char arg[])
+static t_bool b_check_numeric(const char arg[])
{
char *ptr;
@@ -115,7 +115,7 @@ static t_bool b_check_numeric(const char arg[])
return (TRUE);
}
-unsigned char b_h(char *args[], t_msh *msh)
+unsigned char b_h(char *args[], t_msh *msh)
{
const unsigned long argc = u_builtins_get_argc((const char **)args);