summaryrefslogtreecommitdiffstats
path: root/src/m_minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-19 16:59:38 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-19 16:59:38 +0200
commit49b6183dc0171ac040bdd2faf6f8efa0448567c5 (patch)
treeeaff08562cedef9bf4267b0d17efce0485d2f51e /src/m_minishell.c
parentTODO update (diff)
download42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.gz
42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.bz2
42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.xz
42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.zst
42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.zip
Cleaner variables handling $0 $1 $2 $3
Diffstat (limited to 'src/m_minishell.c')
-rw-r--r--src/m_minishell.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/m_minishell.c b/src/m_minishell.c
index 6be605a..aac3af7 100644
--- a/src/m_minishell.c
+++ b/src/m_minishell.c
@@ -23,15 +23,12 @@
#include "s_init.h"
#include "s_destroy.h"
-int
- main(int argc,
- char *const argv[],
- char *const envp[])
+int main(int argc, char *const argv[], char *const envp[])
{
int32_t ret;
t_msh *msh;
- if ((msh = init_msh(argv, envp)) == NULL)
+ if ((msh = init_msh(argc, argv, envp)) == NULL)
{
ft_dprintf(STDERR_FILENO, "%s\n", strerror(errno));
return (FT_RET_ALLOC);