summaryrefslogtreecommitdiffstats
path: root/src/b_cd.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
commitc5aae008dee36276154882d8fd56c3bdeb473474 (patch)
treea40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/b_cd.c
parentTODO update (diff)
download42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip
Now norme
Diffstat (limited to 'src/b_cd.c')
-rw-r--r--src/b_cd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/b_cd.c b/src/b_cd.c
index 887266e..a4dbba6 100644
--- a/src/b_cd.c
+++ b/src/b_cd.c
@@ -11,7 +11,6 @@
/* ************************************************************************** */
#include <libft.h>
-#include <stdint.h>
#include <unistd.h>
#ifdef __linux__
# include <linux/limits.h>
@@ -107,9 +106,9 @@ static void b_upgrade_pwd(const char path[], t_msh *msh)
f_alloc_and_destroy_msh(msh);
}
-uint8_t b_cd(char *args[], t_msh *msh)
+unsigned char b_cd(char *args[], t_msh *msh)
{
- const uint64_t argc = u_builtins_get_argc((const char**)args);
+ const unsigned long argc = u_builtins_get_argc((const char**)args);
char path[PATH_MAX];
if (argc >= 2)