aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 6fbe58c..9cd1b39 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/22 17:14:03 by dkaiser #+# #+# */
-/* Updated: 2025/01/25 10:25:42 by chuhlig ### ########.fr */
+/* Updated: 2025/01/25 15:41:04 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,18 +14,16 @@
int main(int argc, char *argv[], char *envp[])
{
- t_env *env;
- static int promptflag;
+ t_env *env;
env = NULL;
- promptflag = 0;
if (!argc && !argv)
return (1);
if (init())
return (1);
getenvlst(&env, envp);
set_return_code(0, &env);
- repl("Minishell $ ", &env, &promptflag);
+ repl("Minishell $ ", &env);
free_envlst(&env);
return (0);
}