diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_init.c | 10 |
1 files 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 <unistd.h> -#include <stdlib.h> #include <libft.h> #include <signal.h> #include <string.h> #include <term.h> +#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); |