summaryrefslogtreecommitdiffstats
path: root/src/u_path.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/u_path.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 '')
-rw-r--r--src/u_path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/u_path.c b/src/u_path.c
index 0223164..02f3059 100644
--- a/src/u_path.c
+++ b/src/u_path.c
@@ -42,7 +42,7 @@ static void u_get_fullpath(char fullpath[],
}
}
-static int8_t u_read_dir(DIR *dir,
+static char u_read_dir(DIR *dir,
struct s_path s,
const char com[],
char fullpath[])
@@ -63,7 +63,7 @@ static int8_t u_read_dir(DIR *dir,
return (-1);
}
-uint8_t u_search_in_path(char fullpath[],
+unsigned char u_search_in_path(char fullpath[],
const char com[],
size_t dstsize,
t_msh *msh)
@@ -71,7 +71,7 @@ uint8_t u_search_in_path(char fullpath[],
char tmp[ARG_MAX];
struct s_path s;
DIR *dir;
- int8_t ret;
+ char ret;
if (u_get_var_value(tmp, "$PATH", ARG_MAX, msh) != 0)
return (2);