summaryrefslogtreecommitdiffstats
path: root/src/s_lalias.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 17:58:05 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-11 17:58:05 +0200
commitcf39c418a49808eb63cf4e1b5e2e363455f2da84 (patch)
treed6e0403dfd1b72cb1cc76c15254d53d21c8bec6b /src/s_lalias.c
parentAliases list in progress (diff)
download42-minishell-cf39c418a49808eb63cf4e1b5e2e363455f2da84.tar.gz
42-minishell-cf39c418a49808eb63cf4e1b5e2e363455f2da84.tar.bz2
42-minishell-cf39c418a49808eb63cf4e1b5e2e363455f2da84.tar.xz
42-minishell-cf39c418a49808eb63cf4e1b5e2e363455f2da84.tar.zst
42-minishell-cf39c418a49808eb63cf4e1b5e2e363455f2da84.zip
alias utils prepared
Diffstat (limited to 'src/s_lalias.c')
-rw-r--r--src/s_lalias.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/s_lalias.c b/src/s_lalias.c
index b4b9430..eeac08b 100644
--- a/src/s_lalias.c
+++ b/src/s_lalias.c
@@ -19,15 +19,12 @@
#include "s_struct.h"
void
- s_lalias_rebind(t_lalias **lalias,
- const char newname[],
- const char newval[])
+ s_lalias_rebind(t_lalias **lalias, const char name[], const char newval[])
{
t_lalias *tmp;
tmp = *lalias;
- while (tmp != NULL &&
- ft_strncmp(tmp->name, newname, ft_strlen(newname) + 1) != 0)
+ while (tmp != NULL && ft_strncmp(tmp->name, name, ft_strlen(name) + 1) != 0)
{
tmp = tmp->next;
}