diff options
Diffstat (limited to 'src/p_redirs_heredoc.c')
-rw-r--r-- | src/p_redirs_heredoc.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 <libft.h> -#include <stdint.h> #include <unistd.h> #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); |