From a28466680bf506756202197070e2836904009670 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 3 Oct 2020 15:30:51 +0200 Subject: Normed p_heredoc --- src/p_redirs_heredoc.c | 1 - src/p_redirs_heredoc.h | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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 +# include -#include "s_struct.h" +# include "s_struct.h" char *p_get_heredoc(const char path[], const int8_t redir, t_msh *msh); -- cgit v1.2.3