summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:17:18 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:17:18 +0200
commit7a4ba34e7302b1b6c374d1c8cb649efc8ccd2ca6 (patch)
treea701f29193e050a56992ff76ac20099b8018d4bd /src
parentNormed b_type (diff)
download42-minishell-7a4ba34e7302b1b6c374d1c8cb649efc8ccd2ca6.tar.gz
42-minishell-7a4ba34e7302b1b6c374d1c8cb649efc8ccd2ca6.tar.bz2
42-minishell-7a4ba34e7302b1b6c374d1c8cb649efc8ccd2ca6.tar.xz
42-minishell-7a4ba34e7302b1b6c374d1c8cb649efc8ccd2ca6.tar.zst
42-minishell-7a4ba34e7302b1b6c374d1c8cb649efc8ccd2ca6.zip
Normed b_type
Diffstat (limited to 'src')
-rw-r--r--src/b_type.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/b_type.c b/src/b_type.c
index 5566d3d..6a75f13 100644
--- a/src/b_type.c
+++ b/src/b_type.c
@@ -105,8 +105,7 @@ uint8_t b_type(char *args[], t_msh *msh)
while (*ptr != NULL)
{
p_alias = msh->alias;
- while (p_alias != NULL
- && ft_strncmp(*ptr, p_alias->name,
+ while (p_alias != NULL && ft_strncmp(*ptr, p_alias->name,
ft_strlen(p_alias->name) + 1) != 0)
p_alias = p_alias->next;
if (p_alias != NULL)