From 6bbc691aa2e430fe4e9ad52afba1e7672f87c288 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 1 Oct 2020 18:28:11 +0200 Subject: Normed f_alloc --- src/f_alloc.c | 6 ++---- src/f_alloc.h | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/f_alloc.c b/src/f_alloc.c index 721cf34..dc3f589 100644 --- a/src/f_alloc.c +++ b/src/f_alloc.c @@ -20,8 +20,7 @@ #include "s_line.h" #include "s_struct.h" -void - f_alloc_and_destroy_msh(t_msh *msh) +void f_alloc_and_destroy_msh(t_msh *msh) { char tmp[255]; @@ -32,8 +31,7 @@ void exit(M_RET_ALLOC); } -void - f_alloc_and_clear_line(t_msh *msh) +void f_alloc_and_clear_line(t_msh *msh) { s_line_clear(&msh->curr); ft_dprintf(STDERR_FILENO, "%s: %s\n", msh->argv[0], strerror(errno)); diff --git a/src/f_alloc.h b/src/f_alloc.h index 73f7a91..79d93c7 100644 --- a/src/f_alloc.h +++ b/src/f_alloc.h @@ -10,10 +10,10 @@ /* */ /* ************************************************************************** */ -#ifndef F_ALLOC_H -#define F_ALLOC_H +#ifndef FT_F_ALLOC_H +# define FT_F_ALLOC_H -#include "s_struct.h" +# include "s_struct.h" void f_alloc_and_destroy_msh(t_msh *msh); void f_alloc_and_clear_line(t_msh *msh); -- cgit v1.2.3