removed p_token and lastpid gcc complained about unused

This commit is contained in:
whaffman 2025-03-25 09:54:37 +01:00
parent 18069053ee
commit 33a428e81e
2 changed files with 3 additions and 7 deletions

View File

@ -6,7 +6,7 @@
/* By: qmennen <qmennen@student.codam.nl> +#+ */
/* +#+ */
/* 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);

View File

@ -6,7 +6,7 @@
/* By: qmennen <qmennen@student.codam.nl> +#+ */
/* +#+ */
/* 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, ""));