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/m_argv.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 'src/m_argv.c')
-rw-r--r-- | src/m_argv.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/m_argv.c b/src/m_argv.c index d29ac5d..90ddd27 100644 --- a/src/m_argv.c +++ b/src/m_argv.c @@ -13,7 +13,6 @@ #include <sys/stat.h> #include <libft.h> #include <stdlib.h> -#include <stdint.h> #include <fcntl.h> #include <unistd.h> @@ -31,7 +30,7 @@ static char *m_get_prev_hist(t_msh *msh) struct stat sb; char *hist; char histfile[PATH_MAX]; - int32_t fd; + int fd; hist = NULL; u_get_var_value(histfile, "$HISTFILE", PATH_MAX, msh); @@ -51,7 +50,7 @@ static char *m_get_prev_hist(t_msh *msh) static void m_read_script(char *const argv[], t_msh *msh) { - int32_t fd; + int fd; if ((fd = open(*(argv + 1), O_RDONLY)) == -1) f_open_file(*(argv + 1), msh); @@ -62,7 +61,7 @@ static void m_read_script(char *const argv[], t_msh *msh) close(fd); } -uint8_t m_argv(int argc, char *const argv[], t_msh *msh) +unsigned char m_argv(int argc, char *const argv[], t_msh *msh) { if (argc == 1) { |