summaryrefslogtreecommitdiffstats
path: root/src/ft_m_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-05-07 13:49:10 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-05-07 13:49:10 +0200
commit9666a0a0ef6f5a4fb30bac93797d0f029ad8294a (patch)
treea09f917723ae3a0dfeaef025b5e9a76e2c8602f2 /src/ft_m_loop.c
parentPreparing the structs (diff)
download42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.gz
42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.bz2
42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.xz
42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.zst
42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.zip
Still pipin'
Diffstat (limited to '')
-rw-r--r--src/ft_m_loop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c
index 0b590a0..e44c85c 100644
--- a/src/ft_m_loop.c
+++ b/src/ft_m_loop.c
@@ -28,9 +28,9 @@ static char
{
size_t i;
size_t j;
- char *dst;
size_t size1;
size_t size2;
+ char *dst;
i = -1;
j = -1;
@@ -87,8 +87,11 @@ uint8_t
char *line;
char *quote;
int8_t gnl;
+ int32_t pipefd[2];
gnl = 1;
+ pipefd[0] = STDOUT_FILENO;
+ pipefd[1] = STDIN_FILENO;
while (gnl > 0)
{
ft_m_prompt(msh);