From f6faf88cd0991be3184af67d5fa271b12f70e925 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 28 Oct 2020 01:26:44 +0100 Subject: Norming --- src/b_type.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/b_type.c') 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) -- cgit v1.2.3