diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-28 01:26:44 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-28 01:26:44 +0100 |
commit | f6faf88cd0991be3184af67d5fa271b12f70e925 (patch) | |
tree | 02c283541fd2c0b4ccacd31172cccf2ba9711c51 /src/b_type.c | |
parent | Norming in progress (diff) | |
download | 42-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_type.c')
-rw-r--r-- | src/b_type.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/b_type.c b/src/b_type.c index 4cca44c..5904742 100644 --- a/src/b_type.c +++ b/src/b_type.c @@ -27,10 +27,10 @@ #include "u_path.h" #include "u_utils.h" -static char b_absolute_path_exists(char com[]) +static char b_absolute_path_exists(char com[]) { int fd; - DIR *dir; + DIR *dir; if ((dir = opendir(com)) != NULL) { @@ -45,7 +45,7 @@ static char b_absolute_path_exists(char com[]) return (0); } -static void b_type_get_path(char fullpath[], char com[], t_msh *msh) +static void b_type_get_path(char fullpath[], char com[], t_msh *msh) { if (ft_ischarset("/.", com[0]) == TRUE) { @@ -59,7 +59,9 @@ static void b_type_get_path(char fullpath[], char com[], t_msh *msh) u_search_in_path(fullpath, com, PATH_MAX, msh); } -static unsigned char b_check_nonbuilt(char *ptr, unsigned char ret, t_msh *msh) +static unsigned char b_check_nonbuilt(char *ptr, + unsigned char ret, + t_msh *msh) { char fullpath[PATH_MAX]; @@ -99,7 +101,7 @@ unsigned char b_type(char *args[], t_msh *msh) { t_lalias *p_alias; char **ptr; - int ret; + int ret; ptr = args; if (*ptr == NULL) |