diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
commit | c5aae008dee36276154882d8fd56c3bdeb473474 (patch) | |
tree | a40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/s_lpipes_split.c | |
parent | TODO update (diff) | |
download | 42-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 '')
-rw-r--r-- | src/s_lpipes_split.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/s_lpipes_split.c b/src/s_lpipes_split.c index 4da4a03..3dde313 100644 --- a/src/s_lpipes_split.c +++ b/src/s_lpipes_split.c @@ -12,7 +12,6 @@ #include <libft.h> #include <stdlib.h> -#include <stdint.h> #ifdef __linux__ # include <linux/limits.h> #else @@ -24,7 +23,7 @@ #include "u_parse.h" #include "u_utils.h" -void s_set_tmp(char tmp[], size_t pos[], int16_t i, const char word[]) +void s_set_tmp(char tmp[], size_t pos[], short i, const char word[]) { if (pos[i] != 0) ft_strlcpy(tmp, @@ -41,12 +40,12 @@ void s_get_split_pos(size_t pos[], const char word[]) { char *ptr; t_quote_mode mode; - uint16_t i; + unsigned short i; ptr = (char*)word; mode = Q_NONE; i = 1; - while (*ptr != C_NUL && (uint16_t)i < 256) + while (*ptr != C_NUL && (unsigned short)i < 256) { if (*ptr == C_PIPE) { |