summaryrefslogtreecommitdiffstats
path: root/src/m_argv.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:39:11 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:39:11 +0200
commit64364316125af2831cf448cc27bcbfc531e9c271 (patch)
tree73a7213d11627ac8dc1490070e6bafd5c7b55932 /src/m_argv.c
parentNormed d_define (diff)
download42-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 '')
-rw-r--r--src/m_argv.c4
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);