diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-05-07 14:33:49 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-05-07 14:33:49 +0200 |
commit | d324d8b4fbdd9ca4e5426f34ea0f97d60b92e898 (patch) | |
tree | ee428a2eb811bef0f749ba7f7c5adebd43c47e06 /src/ft_s_lpipes.c | |
parent | Still pipin' (diff) | |
download | 42-minishell-d324d8b4fbdd9ca4e5426f34ea0f97d60b92e898.tar.gz 42-minishell-d324d8b4fbdd9ca4e5426f34ea0f97d60b92e898.tar.bz2 42-minishell-d324d8b4fbdd9ca4e5426f34ea0f97d60b92e898.tar.xz 42-minishell-d324d8b4fbdd9ca4e5426f34ea0f97d60b92e898.tar.zst 42-minishell-d324d8b4fbdd9ca4e5426f34ea0f97d60b92e898.zip |
UFS reinstall, will finish pipes later
Diffstat (limited to '')
-rw-r--r-- | src/ft_s_lpipes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_s_lpipes.c b/src/ft_s_lpipes.c index 0a637ce..dcdc2ec 100644 --- a/src/ft_s_lpipes.c +++ b/src/ft_s_lpipes.c @@ -30,7 +30,7 @@ void ft_lpipes_add_back(struct s_lpipes **alpipes, struct s_lpipes *new) { - t_lcom *tmp; + struct s_lpipes *tmp; if (!*alpipes) *alpipes = new; @@ -47,7 +47,7 @@ void struct s_lpipes *tmp; struct s_lpipes *renext; - if (!lcom) + if (!lpipes) return ; tmp = *lpipes; while (tmp) @@ -82,8 +82,8 @@ struct s_lpipes t_lcom *lcom, t_msh *msh) { - struct s_pipes *link; - struct s_pipes *lpipes; + struct s_lpipes *link; + struct s_lpipes *lpipes; char **words; size_t i; @@ -97,7 +97,7 @@ struct s_lpipes { return (NULL); } - ft_lpipes_add_back(); + ft_lpipes_add_back(&lcom->pipes, lpipes); i++; } ft_delwords(words); |