summaryrefslogtreecommitdiffstats
path: root/src/f_redir.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 18:55:07 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 18:55:07 +0200
commit487a66394061f2d14a2fa421302966b5442d643f (patch)
tree34237d4e9cb85f94bcefd46f399d2224dff3f6b3 /src/f_redir.c
parentCorrect shell prompt (diff)
download42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.gz
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.bz2
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.xz
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.zst
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.zip
I couldn't see shit
Diffstat (limited to '')
-rw-r--r--src/f_redir.c (renamed from src/ft_f_redir.c)12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_f_redir.c b/src/f_redir.c
index 2cd7d58..3561272 100644
--- a/src/ft_f_redir.c
+++ b/src/f_redir.c
@@ -1,7 +1,7 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
-/* ft_f_redir.c :+: :+: :+: */
+/* f_redir.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
@@ -16,16 +16,16 @@
#include <unistd.h>
#include <errno.h>
-#include "ft_s_lcom.h"
-#include "ft_s_destroy.h"
+#include "s_lcom.h"
+#include "s_destroy.h"
void
- ft_f_redir(const char path[],
+ f_redir(const char path[],
t_msh *msh)
{
ft_dprintf(STDERR_FILENO, "%s: %s: %s\n",
msh->shname, path, strerror(errno));
- ft_lcom_clear(&msh->curr);
- ft_s_destroy(msh);
+ lcom_clear(&msh->curr);
+ s_destroy(msh);
exit(1);
}