From 9d230c959d27729a8162c0be75747d626bc035ad Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 3 Oct 2020 14:56:25 +0200 Subject: Update --- src/p_lblock_next.c | 2 +- src/p_lblock_next.h | 4 ++-- src/s_com.c | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/p_lblock_next.c b/src/p_lblock_next.c index 485d4ee..bfdca3d 100644 --- a/src/p_lblock_next.c +++ b/src/p_lblock_next.c @@ -75,7 +75,7 @@ static void p_add_to_env_fork(int64_t i, char *words[], t_msh *msh) int64_t j; j = 0; - while(j < i) + while (j < i) { ft_strlcpy(msh->env_fork_tmp[j], words[j], ft_strlen(words[j]) + 1); j++; diff --git a/src/p_lblock_next.h b/src/p_lblock_next.h index 5ee27ed..7042060 100644 --- a/src/p_lblock_next.h +++ b/src/p_lblock_next.h @@ -10,8 +10,8 @@ /* */ /* ************************************************************************** */ -#ifndef FT_P_LCOM_NEXT_H -# define FT_P_LCOM_NEXT_H +#ifndef FT_P_LBLOCK_NEXT_H +# define FT_P_LBLOCK_NEXT_H # include # include diff --git a/src/s_com.c b/src/s_com.c index 9dc8309..d304675 100644 --- a/src/s_com.c +++ b/src/s_com.c @@ -26,10 +26,13 @@ #include "s_lredir.h" #include "s_struct.h" +/* +** TODO: norme +*/ + static int8_t s_fill_com(char *words[], t_com **com) { - /* TODO: norme */ uint64_t i; uint64_t j; -- cgit v1.2.3