summaryrefslogtreecommitdiffstats
path: root/src/m_mshrc.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/m_mshrc.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 '')
-rw-r--r--src/m_mshrc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/m_mshrc.c b/src/m_mshrc.c
index 424e17b..a78ea95 100644
--- a/src/m_mshrc.c
+++ b/src/m_mshrc.c
@@ -11,7 +11,6 @@
/* ************************************************************************** */
#include <libft.h>
-#include <stdint.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
@@ -26,12 +25,12 @@
#include "m_loop.h"
#include "u_vars.h"
-uint8_t m_source_mshrc(t_msh *msh)
+unsigned char m_source_mshrc(t_msh *msh)
{
char file[PATH_MAX];
char home[PATH_MAX];
- int32_t fd;
- uint8_t ret;
+ int fd;
+ unsigned char ret;
file[0] = C_NUL;
u_get_var_value(home, "$HOME", PATH_MAX, msh);