summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-01 18:29:06 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-01 18:29:06 +0200
commit0131724fbe1f68a9b43305853b66a205e15c7f86 (patch)
tree17ceed97b4b729aa5b328122b0a99ab53dfb1a92 /src
parentNormed f_alloc (diff)
download42-minishell-0131724fbe1f68a9b43305853b66a205e15c7f86.tar.gz
42-minishell-0131724fbe1f68a9b43305853b66a205e15c7f86.tar.bz2
42-minishell-0131724fbe1f68a9b43305853b66a205e15c7f86.tar.xz
42-minishell-0131724fbe1f68a9b43305853b66a205e15c7f86.tar.zst
42-minishell-0131724fbe1f68a9b43305853b66a205e15c7f86.zip
Normed f_chdir
Diffstat (limited to 'src')
-rw-r--r--src/f_chdir.c5
-rw-r--r--src/f_chdir.h6
2 files changed, 4 insertions, 7 deletions
diff --git a/src/f_chdir.c b/src/f_chdir.c
index ce69ca5..3e1fcc1 100644
--- a/src/f_chdir.c
+++ b/src/f_chdir.c
@@ -17,10 +17,7 @@
#include "s_struct.h"
-void
- f_fail_chd(const char concern[],
- const char path[],
- t_msh *msh)
+void f_fail_chd(const char concern[], const char path[], t_msh *msh)
{
ft_dprintf(STDERR_FILENO, "%s: %s: %s: %s\n",
msh->argv[0], concern, path, strerror(errno));
diff --git a/src/f_chdir.h b/src/f_chdir.h
index c4136af..d065f41 100644
--- a/src/f_chdir.h
+++ b/src/f_chdir.h
@@ -10,10 +10,10 @@
/* */
/* ************************************************************************** */
-#ifndef F_CHDIR_H
-#define F_CHDIR_H
+#ifndef FT_F_CHDIR_H
+# define FT_F_CHDIR_H
-#include "s_struct.h"
+# include "s_struct.h"
void f_fail_chd(const char concern[], const char pathp[], t_msh *msh);