summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);