summaryrefslogtreecommitdiffstats
path: root/src/s_lpipes_split.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/s_lpipes_split.c7
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)
{