did some slight norming (200 lines of norminette and i'm not even done yet... :c)

This commit is contained in:
mdev9
2024-04-22 19:56:22 +02:00
parent 642a9ab232
commit e4df4a5655
15 changed files with 98 additions and 112 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:17:25 by marde-vr #+# #+# */
/* Updated: 2024/04/22 19:18:39 by marde-vr ### ########.fr */
/* Updated: 2024/04/22 19:49:36 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -31,7 +31,6 @@ void execute_command(t_msh *msh, char **cmd_args)
{
char **env;
//if (cmd_is_forkable_builtin(msh->tokens->value))
if (exec_builtin(msh))
{
free(cmd_args);
@ -43,7 +42,7 @@ void execute_command(t_msh *msh, char **cmd_args)
env = env_to_char_tab(msh->env);
if (env)
{
if(execve(msh->tokens->value, cmd_args, env))
if (execve(msh->tokens->value, cmd_args, env))
perror("execve");
}
ft_free_str_arr(env);