summaryrefslogtreecommitdiffstats
path: root/src/u_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u_utils.c')
-rw-r--r--src/u_utils.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/u_utils.c b/src/u_utils.c
index d56d7c0..5394705 100644
--- a/src/u_utils.c
+++ b/src/u_utils.c
@@ -12,7 +12,6 @@
#include <libft.h>
#include <stdlib.h>
-#include <stdint.h>
#include <unistd.h>
#include "d_define.h"
@@ -28,7 +27,7 @@ t_bool u_is_not_escaped(const char *head, const char *ptr)
return (FALSE);
}
-void u_eof_fd(int32_t fd)
+void u_eof_fd(int fd)
{
char *line;
@@ -61,9 +60,9 @@ char **u_get_env_var_names(t_msh *msh)
return (vars);
}
-uint64_t u_builtins_get_argc(const char *args[])
+unsigned long u_builtins_get_argc(const char *args[])
{
- uint64_t argc;
+ unsigned long argc;
argc = 0;
while (args[argc] != NULL)
@@ -73,11 +72,11 @@ uint64_t u_builtins_get_argc(const char *args[])
return (argc);
}
-uint8_t u_get_builtin_id(const char bin[])
+unsigned char u_get_builtin_id(const char bin[])
{
char tmp[M_BUILTINS_REF_LEN];
char *tok;
- uint8_t i;
+ unsigned char i;
i = 0;
ft_strlcpy(tmp, M_BUILTINS_REF, M_BUILTINS_REF_LEN);