From 49b6183dc0171ac040bdd2faf6f8efa0448567c5 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 19 Sep 2020 16:59:38 +0200 Subject: Cleaner variables handling $0 $1 $2 $3 --- src/m_minishell.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/m_minishell.c') 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); -- cgit v1.2.3