aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/execute_cmd.c1
-rw-r--r--src/main.c2
-rw-r--r--src/repl.c1
3 files changed, 1 insertions, 3 deletions
diff --git a/src/execute_cmd.c b/src/execute_cmd.c
index adfcb37..2d8878b 100644
--- a/src/execute_cmd.c
+++ b/src/execute_cmd.c
@@ -13,6 +13,7 @@
#include "minishell.h"
#include <stdio.h>
#include <stdlib.h>
+#include <wait.h>
static void establish_pipeline(int original_stdin, int original_stdout);
static int exec_cmd(t_cmd *cmd, t_env **env, int original_std[2], int result);
diff --git a/src/main.c b/src/main.c
index f759de7..9a5122b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -15,10 +15,8 @@
int main(int argc, char *argv[], char *envp[])
{
t_env *env;
- static int promptflag;
env = NULL;
- promptflag = 0;
if (!argc && !argv)
return (1);
if (init())
diff --git a/src/repl.c b/src/repl.c
index a0b7864..3f4435d 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -26,7 +26,6 @@ void repl(const char *prompt, t_env **env)
t_token *token_list;
t_node *ast;
- (*promptflag)++;
while (1)
{
input = readline(prompt);