summaryrefslogtreecommitdiffstats
path: root/src/e_pipes_next.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/e_pipes_next.c')
-rw-r--r--src/e_pipes_next.c11
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;