summaryrefslogtreecommitdiffstats
path: root/src/m_argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_argv.c')
-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);