summaryrefslogtreecommitdiffstats
path: root/src/b_h.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-16 21:27:23 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-16 21:27:23 +0200
commitca1713c01ba190e8b56b0e8e5e56e9d5640be4be (patch)
tree545997b85d13948b33ecdb95057cd8a1b4d19073 /src/b_h.c
parenth builtin in progress (diff)
download42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.tar.gz
42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.tar.bz2
42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.tar.xz
42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.tar.zst
42-minishell-ca1713c01ba190e8b56b0e8e5e56e9d5640be4be.zip
h still in progress
Diffstat (limited to 'src/b_h.c')
-rw-r--r--src/b_h.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/b_h.c b/src/b_h.c
index 60e80ca..0e968ff 100644
--- a/src/b_h.c
+++ b/src/b_h.c
@@ -20,7 +20,7 @@
#include "s_struct.h"
#include "u_utils.h"
-static void b_print_history(const char arg[], t_msh *msh)
+static void b_print_history(const char arg[], uint64_t max_hist, t_msh *msh)
{
char *prev_hist;
char *tok;
@@ -35,7 +35,7 @@ static void b_print_history(const char arg[], t_msh *msh)
tok = ft_strtok(prev_hist, "\n");
while (tok != NULL)
{
- ft_printf("%-5u %s\n", i, tok);
+ ft_printf("%5u %s\n", i, tok);
i++;
tok = ft_strtok(NULL, "\n");
}