From c5aae008dee36276154882d8fd56c3bdeb473474 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 27 Oct 2020 19:59:20 +0100 Subject: Now norme --- src/p_redirs_heredoc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/p_redirs_heredoc.c') diff --git a/src/p_redirs_heredoc.c b/src/p_redirs_heredoc.c index 95aefa6..6f10dd4 100644 --- a/src/p_redirs_heredoc.c +++ b/src/p_redirs_heredoc.c @@ -11,14 +11,13 @@ /* ************************************************************************** */ #include -#include #include #include "d_define.h" #include "m_prompt.h" #include "s_struct.h" -static void p_skip_tabs(char *line[], const int8_t redir) +static void p_skip_tabs(char *line[], const char redir) { char *ptr; @@ -41,11 +40,11 @@ static void p_append_line(char *heredoc[], const char line[]) ptr[ft_strlen(ptr)] = C_LF; } -char *p_get_heredoc(const char path[], const int8_t redir, t_msh *msh) +char *p_get_heredoc(const char path[], const char redir, t_msh *msh) { char *heredoc; char *line; - int8_t gnl; + char gnl; if ((heredoc = ft_strdup("")) == NULL) return (NULL); -- cgit v1.2.3