diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-01 18:28:11 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-01 18:28:11 +0200 |
commit | 6bbc691aa2e430fe4e9ad52afba1e7672f87c288 (patch) | |
tree | 55740462d9ca92b22a0be23312ce5a8851f82e3b | |
parent | Normed e_redirs (diff) | |
download | 42-minishell-6bbc691aa2e430fe4e9ad52afba1e7672f87c288.tar.gz 42-minishell-6bbc691aa2e430fe4e9ad52afba1e7672f87c288.tar.bz2 42-minishell-6bbc691aa2e430fe4e9ad52afba1e7672f87c288.tar.xz 42-minishell-6bbc691aa2e430fe4e9ad52afba1e7672f87c288.tar.zst 42-minishell-6bbc691aa2e430fe4e9ad52afba1e7672f87c288.zip |
Normed f_alloc
-rw-r--r-- | src/f_alloc.c | 6 | ||||
-rw-r--r-- | 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); |