diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 18:39:11 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 18:39:11 +0200 |
commit | 64364316125af2831cf448cc27bcbfc531e9c271 (patch) | |
tree | 73a7213d11627ac8dc1490070e6bafd5c7b55932 /src/m_argv.c | |
parent | Normed d_define (diff) | |
download | 42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.tar.gz 42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.tar.bz2 42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.tar.xz 42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.tar.zst 42-minishell-64364316125af2831cf448cc27bcbfc531e9c271.zip |
Names update
Diffstat (limited to 'src/m_argv.c')
-rw-r--r-- | src/m_argv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/m_argv.c b/src/m_argv.c index bd415ec..d29ac5d 100644 --- a/src/m_argv.c +++ b/src/m_argv.c @@ -72,12 +72,12 @@ uint8_t m_argv(int argc, char *const argv[], t_msh *msh) msh->fd = STDIN_FILENO; msh->ret = m_loop(STDIN_FILENO, msh); } - else if (argc > 1 && ft_strncmp(*(argv + 1), FT_OPT_COMMAND, 3) == 0) + else if (argc > 1 && ft_strncmp(*(argv + 1), M_OPT_COMMAND, 3) == 0) { if (*(argv + 2) == NULL) { ft_dprintf(STDERR_FILENO, "%s: %s: option requires an argument\n", - msh->argv[0], FT_OPT_COMMAND); + msh->argv[0], M_OPT_COMMAND); return (2); } msh->ret = m_comm(*(argv + 2), msh); |