From c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 30 Jul 2020 20:30:58 +0200 Subject: Double exit no more --- src/b_cd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/b_cd.c') diff --git a/src/b_cd.c b/src/b_cd.c index c892f7e..f30e61f 100644 --- a/src/b_cd.c +++ b/src/b_cd.c @@ -28,7 +28,7 @@ static void if (!(*path = ft_strdup(*args))) { s_destroy(msh); - fail_alloc(msh); + f_fail_alloc(msh); } if (!ft_strncmp("~/", *path, 2) || !ft_strncmp("~", *path, 2)) { @@ -36,7 +36,7 @@ static void "~", u_get_var_value("$HOME", msh)))) { s_destroy(msh); - fail_alloc(msh); + f_fail_alloc(msh); } } } @@ -50,7 +50,7 @@ uint8_t if (argc >= 2) { - fail_too_many_args("cd", msh); + f_fail_too_many_args("cd", msh); return (1); } else if (argc == 0) @@ -62,7 +62,7 @@ uint8_t set_path(&path, args, msh); if (chdir(path) != 0) { - fail_chd("cd", path, msh); + f_fail_chd("cd", path, msh); ft_memdel((void*)&path); return (1); } -- cgit v1.2.3