diff options
Diffstat (limited to 'src/m_loop_counter.c')
-rw-r--r-- | src/m_loop_counter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/m_loop_counter.c b/src/m_loop_counter.c index 85609dd..430968a 100644 --- a/src/m_loop_counter.c +++ b/src/m_loop_counter.c @@ -13,6 +13,7 @@ #include <libft.h> #include <unistd.h> +#include "c_init.h" #include "m_prompt.h" #include "s_struct.h" @@ -23,7 +24,7 @@ char *m_counter_line_backslash(int fd, { char *counter_line; - c_gnl(fd, &line, psx, msh); + c_gnl(fd, &counter_line, psx, msh); if (counter_line[0] != C_NUL) { l = ft_nrealloc(l, @@ -41,7 +42,7 @@ char *m_counter_line_pipes(int fd, unsigned char psx, char *line, t_msh *msh) { char *counter_line; - c_gnl(fd, &line, psx, msh); + c_gnl(fd, &counter_line, psx, msh); if (counter_line[0] != C_NUL) { line = ft_nrealloc(line, @@ -62,7 +63,7 @@ char *m_counter_line_quotes(int fd, { char *counter_line; - c_gnl(fd, &line, psx, msh); + c_gnl(fd, &counter_line, psx, msh); if (counter_line[0] != C_NUL) { line = ft_nrealloc(line, |