summaryrefslogtreecommitdiffstats
path: root/src/p_lblock.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
commitc5aae008dee36276154882d8fd56c3bdeb473474 (patch)
treea40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/p_lblock.c
parentTODO update (diff)
download42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip
Now norme
Diffstat (limited to 'src/p_lblock.c')
-rw-r--r--src/p_lblock.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/p_lblock.c b/src/p_lblock.c
index e147a9f..f3b5b44 100644
--- a/src/p_lblock.c
+++ b/src/p_lblock.c
@@ -12,7 +12,6 @@
#include <libft.h>
#include <stdlib.h>
-#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
@@ -27,9 +26,9 @@
#include "u_parse.h"
#include "u_utils.h"
-static uint8_t p_get_nextif(char *words[], size_t i)
+static unsigned char p_get_nextif(char *words[], size_t i)
{
- uint8_t nextif;
+ unsigned char nextif;
nextif = 0;
if (words[i][ft_strlen(words[i]) - 1] == '0')
@@ -66,11 +65,11 @@ t_bool p_find_good_pipe(const char word[])
return (FALSE);
}
-static int8_t p_loop(char *words[], t_msh *msh)
+static char p_loop(char *words[], t_msh *msh)
{
t_line_block *link;
size_t i;
- uint8_t nextif;
+ unsigned char nextif;
i = 0;
while (words[i] != NULL)
@@ -84,7 +83,7 @@ static int8_t p_loop(char *words[], t_msh *msh)
return (0);
}
-int8_t p_line_block(const char line[], t_msh *msh)
+char p_line_block(const char line[], t_msh *msh)
{
char **words;