From 9ae8f935e955a9cc3ce461071e8d5bf9b227b891 Mon Sep 17 00:00:00 2001 From: salad Date: Tue, 15 Dec 2020 17:24:53 +0100 Subject: norm tobecontinued2 --- src/c_init.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/c_init.c b/src/c_init.c index 0994e5d..a8ec6ee 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -11,12 +11,12 @@ /* ************************************************************************** */ #include -#include #include #include #include #include +#include "b_exit.h" #include "c_ctrls.h" #include "c_init.h" #include "c_keys.h" @@ -24,14 +24,10 @@ #include "c_input.h" #include "c_utils.h" #include "d_define.h" -#include "b_exit.h" +#include "m_prompt.h" #include "s_struct.h" #include "s_com.h" #include "s_line.h" -#include "s_destroy.h" -#include "m_prompt.h" -#include "m_loop.h" -#include "u_utils.h" short c_set_term_raw(char mode) @@ -141,7 +137,7 @@ static char char *ptr; if (*line == NULL) - if (!(*line = calloc(1, sizeof(char)))) + if (!(*line = ft_calloc(1, sizeof(char)))) return (NULL); if (ft_isprint(buf[0])) c_add_char(line, buf, tcaps); -- cgit v1.2.3