summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-03 15:30:51 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-03 15:30:51 +0200
commita28466680bf506756202197070e2836904009670 (patch)
treeff370f94779b3a1612d451b958d84585ca83ce32
parentRenormed (diff)
download42-minishell-a28466680bf506756202197070e2836904009670.tar.gz
42-minishell-a28466680bf506756202197070e2836904009670.tar.bz2
42-minishell-a28466680bf506756202197070e2836904009670.tar.xz
42-minishell-a28466680bf506756202197070e2836904009670.tar.zst
42-minishell-a28466680bf506756202197070e2836904009670.zip
Normed p_heredoc
-rw-r--r--src/p_redirs_heredoc.c1
-rw-r--r--src/p_redirs_heredoc.h8
2 files changed, 4 insertions, 5 deletions
diff --git a/src/p_redirs_heredoc.c b/src/p_redirs_heredoc.c
index 6ba06f1..95aefa6 100644
--- a/src/p_redirs_heredoc.c
+++ b/src/p_redirs_heredoc.c
@@ -63,7 +63,6 @@ char *p_get_heredoc(const char path[], const int8_t redir, t_msh *msh)
break ;
p_append_line(&heredoc, line);
ft_memdel((void*)&line);
-
}
if (gnl > 0)
ft_memdel((void*)&line);
diff --git a/src/p_redirs_heredoc.h b/src/p_redirs_heredoc.h
index 91803ac..158c2e5 100644
--- a/src/p_redirs_heredoc.h
+++ b/src/p_redirs_heredoc.h
@@ -10,12 +10,12 @@
/* */
/* ************************************************************************** */
-#ifndef P_REDIRS_HEREDOC_H
-#define P_REDIRS_HEREDOC_H
+#ifndef FT_P_REDIRS_HEREDOC_H
+# define FT_P_REDIRS_HEREDOC_H
-#include <stdint.h>
+# include <stdint.h>
-#include "s_struct.h"
+# include "s_struct.h"
char *p_get_heredoc(const char path[], const int8_t redir, t_msh *msh);