summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoe <rbousset@42lyon.fr>2020-11-25 13:23:10 +0100
committerjoe <rbousset@42lyon.fr>2020-11-25 13:38:34 +0100
commita531dbf791b990e1b6a772a5ff0b927d6dc72ed9 (patch)
tree6549573f56d158502254e3467dfb9556b412040b
parentTODO update (diff)
download42-minishell-a531dbf791b990e1b6a772a5ff0b927d6dc72ed9.tar.gz
42-minishell-a531dbf791b990e1b6a772a5ff0b927d6dc72ed9.tar.bz2
42-minishell-a531dbf791b990e1b6a772a5ff0b927d6dc72ed9.tar.xz
42-minishell-a531dbf791b990e1b6a772a5ff0b927d6dc72ed9.tar.zst
42-minishell-a531dbf791b990e1b6a772a5ff0b927d6dc72ed9.zip
Cleaner
-rw-r--r--Makefile2
-rw-r--r--src/m_loop_multis.c2
-rw-r--r--src/m_loop_multis.h1
-rw-r--r--src/m_minishell.c2
4 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8b50f41..7813a7a 100644
--- a/Makefile
+++ b/Makefile
@@ -153,7 +153,7 @@ ${OBJS_DIR}:
${MKDIR} ${OBJS_DIR}
#------------------------------------------------------------------------------#
$(NAME): ${OBJS} ${LFT_SRCS} ${LFT_INCS_DIR}libft.h
- @$(MAKE) --no-print-directory -C ${LFT_DIR} ${LFTRULE}
+ $(MAKE) --no-print-directory -C ${LFT_DIR} ${LFTRULE}
${CC} ${CFLAGS} ${CDEFS} -o ${NAME} ${OBJS} ${LDFLAGS}
#------------------------------------------------------------------------------#
all: ${OBJS_DIR} ${NAME}
diff --git a/src/m_loop_multis.c b/src/m_loop_multis.c
index 8fc9e7d..d91b7c6 100644
--- a/src/m_loop_multis.c
+++ b/src/m_loop_multis.c
@@ -83,7 +83,7 @@ static t_bool m_check_missing_quotes(char line[])
return (FALSE);
}
-char *m_check_multi_quotes(int fd, char line[], t_msh *msh)
+static char *m_check_multi_quotes(int fd, char line[], t_msh *msh)
{
t_bool reparse;
diff --git a/src/m_loop_multis.h b/src/m_loop_multis.h
index ddef634..a8348e9 100644
--- a/src/m_loop_multis.h
+++ b/src/m_loop_multis.h
@@ -15,7 +15,6 @@
# include "s_struct.h"
-char *m_check_multi_quotes(int fd, char line[], t_msh *msh);
char *m_check_multis(int fd, char line[], t_msh *msh);
#endif
diff --git a/src/m_minishell.c b/src/m_minishell.c
index a3226fe..6cd1f61 100644
--- a/src/m_minishell.c
+++ b/src/m_minishell.c
@@ -34,7 +34,7 @@ int main(int argc, char *const argv[], char *const envp[])
}
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO))
{
- ft_dprintf(2, "minishell: innapropriate ioctl device.");
+ ft_dprintf(STDERR_FILENO, "minishell: innapropriate ioctl device.\n");
exit(1);
}
ret = m_argv(argc, argv, msh);