diff options
Diffstat (limited to 'src/eval/parenthesis.c')
| -rw-r--r-- | src/eval/parenthesis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval/parenthesis.c b/src/eval/parenthesis.c index 83edf40..5a1fafa 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/15 20:09:13 by charles ### ########.fr */ +/* Updated: 2020/10/06 17:22:29 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,10 +14,10 @@ int wrapped_eval(t_fork_param_args *param) { - return (eval(param->fds, param->env, param->ast, NULL, FD_NONE)); + return (eval(param->fds, param->env, param->ast)); } -int eval_parenthesis(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close) +int eval_parenthesis(int fds[2], t_env env, t_ast *ast) { int status; t_fork_param_args param; @@ -29,5 +29,5 @@ int eval_parenthesis(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int param.fds[1] = fds[1]; param.env = env; param.ast = ast->parent_ast; - return (fork_wrap(fds, ¶m, (t_wrapped_func)wrapped_eval, child_pid, fd_to_close)); + return (fork_wrap(fds, ¶m, (t_wrapped_func)wrapped_eval)); } |
