summaryrefslogtreecommitdiffstats
path: root/src/e_redirs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/e_redirs.c')
-rw-r--r--src/e_redirs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/e_redirs.c b/src/e_redirs.c
index f559ca1..ddfdb53 100644
--- a/src/e_redirs.c
+++ b/src/e_redirs.c
@@ -11,7 +11,6 @@
/* ************************************************************************** */
#include <libft.h>
-#include <stdint.h>
#include <stddef.h>
#include <fcntl.h>
#include <unistd.h>
@@ -23,7 +22,7 @@
static void e_redir_minus_two(struct s_lredir *ptr)
{
- int32_t fd[2];
+ int fd[2];
if (ptr->heredoc == NULL)
{
@@ -38,7 +37,7 @@ static void e_redir_minus_two(struct s_lredir *ptr)
static void e_redir_minus_one(struct s_lredir *ptr, t_msh *msh)
{
- int32_t fd;
+ int fd;
if ((fd = open(ptr->path, O_RDONLY)) == -1)
{
@@ -51,7 +50,7 @@ static void e_redir_minus_one(struct s_lredir *ptr, t_msh *msh)
static void e_redir_plus_one(struct s_lredir *ptr, t_msh *msh)
{
- int32_t fd;
+ int fd;
if ((fd = open(ptr->path, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
{
@@ -64,7 +63,7 @@ static void e_redir_plus_one(struct s_lredir *ptr, t_msh *msh)
static void e_redir_plus_two(struct s_lredir *ptr, t_msh *msh)
{
- int32_t fd;
+ int fd;
if ((fd = open(ptr->path, O_CREAT | O_APPEND | O_WRONLY, 0644)) == -1)
{