diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 19:21:23 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 19:21:23 +0200 |
commit | 0daacec366aab889b2b24d7fc6edebe1370d7e28 (patch) | |
tree | b16cf4d5c03751838896acee6c2d6129f3372b3b /src/ft_m_loop.c | |
parent | Continuing (diff) | |
download | 42-minishell-0daacec366aab889b2b24d7fc6edebe1370d7e28.tar.gz 42-minishell-0daacec366aab889b2b24d7fc6edebe1370d7e28.tar.bz2 42-minishell-0daacec366aab889b2b24d7fc6edebe1370d7e28.tar.xz 42-minishell-0daacec366aab889b2b24d7fc6edebe1370d7e28.tar.zst 42-minishell-0daacec366aab889b2b24d7fc6edebe1370d7e28.zip |
Linked list not working but ok
Diffstat (limited to '')
-rw-r--r-- | src/ft_m_loop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c index 3f9488a..d993ac6 100644 --- a/src/ft_m_loop.c +++ b/src/ft_m_loop.c @@ -14,8 +14,10 @@ #include <stdint.h> #include <unistd.h> #include "ft_d_enum.h" +#include "ft_e_lcom.h" #include "ft_m_loop.h" #include "ft_m_prompt.h" +#include "ft_p_line.h" int32_t ft_m_loop(t_msh *msh) @@ -30,7 +32,7 @@ int32_t gnl = get_next_line(STDIN_FILENO, &line); ft_p_line(line, msh); ft_memdel((void*)&line); - ft_e_lcom(msh->lcom, msh); + ft_e_lcom(msh->lcom_head, msh); } return (FT_RET_FINE); } |