From 33a428e81ec3d1ef4db3d3b627d6543368072e25 Mon Sep 17 00:00:00 2001 From: whaffman Date: Tue, 25 Mar 2025 09:54:37 +0100 Subject: [PATCH] removed p_token and lastpid gcc complained about unused --- src/executor/executor_execute_pipeline.c | 6 ++---- src/parser/parser_process_token.c | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/executor/executor_execute_pipeline.c b/src/executor/executor_execute_pipeline.c index 302649b..0a432d0 100644 --- a/src/executor/executor_execute_pipeline.c +++ b/src/executor/executor_execute_pipeline.c @@ -6,7 +6,7 @@ /* By: qmennen +#+ */ /* +#+ */ /* Created: 2025/02/12 21:25:02 by willem #+# #+# */ -/* Updated: 2025/03/19 14:03:51 by whaffman ######## odam.nl */ +/* Updated: 2025/03/25 09:42:42 by whaffman ######## odam.nl */ /* */ /* ************************************************************************** */ @@ -74,16 +74,14 @@ static void executor_wait(t_minishell*msh) int executor_execute_pipeline(t_minishell *msh) { t_list *current; - pid_t last_pid; executor_create_pipes(msh); executor_create_redirects(msh); current = msh->commands; ft_lstiter(current, print_commands); - last_pid = 0; while (current) { - last_pid = executor_execute_command(msh, (t_command *)current->content); + executor_execute_command(msh, (t_command *)current->content); current = current->next; } executor_wait(msh); diff --git a/src/parser/parser_process_token.c b/src/parser/parser_process_token.c index d5f602a..027097b 100644 --- a/src/parser/parser_process_token.c +++ b/src/parser/parser_process_token.c @@ -6,7 +6,7 @@ /* By: qmennen +#+ */ /* +#+ */ /* Created: 2025/03/05 21:12:15 by qmennen #+# #+# */ -/* Updated: 2025/03/07 17:48:48 by whaffman ######## odam.nl */ +/* Updated: 2025/03/25 09:44:22 by whaffman ######## odam.nl */ /* */ /* ************************************************************************** */ @@ -46,12 +46,10 @@ char *parser_process_token(t_minishell *msh, t_list *prev, t_list *t_head) { char *str; t_token *token; - t_token *p_token; if (!t_head) return (NULL); token = (t_token *)t_head->content; - p_token = (t_token *)prev->content; str = NULL; if (ft_strcmp(token->value, "") == 0) return (ft_strdup_safe(msh, ""));