summaryrefslogtreecommitdiffstats
path: root/src/m_loop_counter.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-11-02 15:23:19 +0100
committersalad <fmoenne-@student.le-101.fr>2020-11-02 15:23:19 +0100
commit541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab (patch)
tree6098829ac4007b672893e800ea56453071672973 /src/m_loop_counter.c
parentomw to sed-town (diff)
download42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.gz
42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.bz2
42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.xz
42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.tar.zst
42-minishell-541d187f9fa37f79b5815a5d4d52ac5ad5bf2bab.zip
merge happenned
Diffstat (limited to 'src/m_loop_counter.c')
-rw-r--r--src/m_loop_counter.c7
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,