summaryrefslogtreecommitdiffstats
path: root/src/b_cd.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-28 01:26:44 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-28 01:26:44 +0100
commitf6faf88cd0991be3184af67d5fa271b12f70e925 (patch)
tree02c283541fd2c0b4ccacd31172cccf2ba9711c51 /src/b_cd.c
parentNorming in progress (diff)
download42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.gz
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.bz2
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.xz
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.zst
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.zip
Norming
Diffstat (limited to 'src/b_cd.c')
-rw-r--r--src/b_cd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/b_cd.c b/src/b_cd.c
index a4dbba6..3d702ea 100644
--- a/src/b_cd.c
+++ b/src/b_cd.c
@@ -27,7 +27,7 @@
#include "u_vars.h"
#include "u_vars_next.h"
-static void b_set_oldpwd(t_msh *msh)
+static void b_set_oldpwd(t_msh *msh)
{
char pwd[PATH_MAX];
char tmp[PATH_MAX];
@@ -49,7 +49,7 @@ static void b_set_oldpwd(t_msh *msh)
}
}
-static void b_fill_repath(char rpath[], char *splited[])
+static void b_fill_repath(char rpath[], char *splited[])
{
size_t i;
size_t j;
@@ -78,7 +78,7 @@ static void b_fill_repath(char rpath[], char *splited[])
}
}
-static void b_upgrade_pwd(const char path[], t_msh *msh)
+static void b_upgrade_pwd(const char path[], t_msh *msh)
{
char **splited;
char repath[262144];
@@ -106,10 +106,10 @@ static void b_upgrade_pwd(const char path[], t_msh *msh)
f_alloc_and_destroy_msh(msh);
}
-unsigned char b_cd(char *args[], t_msh *msh)
+unsigned char b_cd(char *args[], t_msh *msh)
{
const unsigned long argc = u_builtins_get_argc((const char**)args);
- char path[PATH_MAX];
+ char path[PATH_MAX];
if (argc >= 2)
f_fail_too_many_args("cd", msh);