diff options
| author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 | 
|---|---|---|
| committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 | 
| commit | c5aae008dee36276154882d8fd56c3bdeb473474 (patch) | |
| tree | a40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/e_pipes_next.c | |
| parent | TODO update (diff) | |
| download | 42-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/e_pipes_next.c')
| -rw-r--r-- | src/e_pipes_next.c | 11 | 
1 files changed, 5 insertions, 6 deletions
| diff --git a/src/e_pipes_next.c b/src/e_pipes_next.c index 250439f..6cca414 100644 --- a/src/e_pipes_next.c +++ b/src/e_pipes_next.c @@ -12,7 +12,6 @@  #include <libft.h>  #include <stdlib.h> -#include <stdint.h>  #include <fcntl.h>  #include <unistd.h>  #include <errno.h> @@ -42,7 +41,7 @@ static void	e_fullpath_not_found(t_com *ptr, t_msh *msh)  static void	e_exec_child(const char fullpath[], t_com *ptr, t_msh *msh)  {  	char	buff[7]; -	int32_t	fd; +	int	fd;  	if ((fd = open(fullpath, O_RDONLY)) != -1)  	{ @@ -69,12 +68,12 @@ static void	e_exec_child(const char fullpath[], t_com *ptr, t_msh *msh)  }  void		e_pipe_child(char fullpath[], -						uint8_t fp_ret, +						unsigned char fp_ret,  						t_com *ptr,  						t_msh *msh)  { -	uint8_t	bu_id; -	uint8_t	ret; +	unsigned char	bu_id; +	unsigned char	ret;  	e_dup_redirs(ptr, msh);  	if (ft_strncmp(fullpath, "builtin", 8) == 0) @@ -111,7 +110,7 @@ size_t		e_get_pipes_count(struct s_lpipes *ptr)  	return (pipes);  } -void		e_close_unused_fds(int32_t fd[256][2], size_t pipes) +void		e_close_unused_fds(int fd[256][2], size_t pipes)  {  	size_t	i; | 
