summaryrefslogtreecommitdiffstats
path: root/src/p_redirs_heredoc.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/p_redirs_heredoc.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 '')
-rw-r--r--src/p_redirs_heredoc.c7
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);