aboutsummaryrefslogtreecommitdiff
path: root/src/eval/parenthesis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/parenthesis.c')
-rw-r--r--src/eval/parenthesis.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/eval/parenthesis.c b/src/eval/parenthesis.c
index 8983378..610218b 100644
--- a/src/eval/parenthesis.c
+++ b/src/eval/parenthesis.c
@@ -6,7 +6,7 @@
/* By: charles <me@cacharle.xyz> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/09/13 20:38:29 by charles #+# #+# */
-/* Updated: 2020/09/13 20:40:19 by charles ### ########.fr */
+/* Updated: 2020/09/14 19:40:12 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,10 +17,10 @@ int wrapped_eval(void *void_param)
t_fork_param_args *param;
param = void_param;
- return (eval(param->fds, param->env, param->path, param->ast, NULL));
+ return (eval(param->fds, param->env, param->ast, NULL));
}
-int eval_parenthesis(int fds[2], t_env env, t_path path, t_ast *ast)
+int eval_parenthesis(int fds[2], t_env env, t_ast *ast)
{
int status;
t_fork_param_args param;
@@ -31,7 +31,6 @@ int eval_parenthesis(int fds[2], t_env env, t_path path, t_ast *ast)
param.fds[0] = fds[0];
param.fds[1] = fds[1];
param.env = env;
- param.path = path;
param.ast = ast->parent_ast;
return (fork_wrap(fds, &param, wrapped_eval, NULL));
}