aboutsummaryrefslogtreecommitdiff
path: root/src/lst
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-19 02:51:44 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-19 02:51:44 +0100
commit3c3f1115f6e9a9b914e2dcbd796501ca7ce85342 (patch)
tree29803aac5bd1fe039b9a8179e8c2a4f07e68ec82 /src/lst
parent0362f55a094b5ec813d940b66f397abfa13fbe49 (diff)
downloadlibft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.tar.gz
libft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.tar.bz2
libft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.zip
Tested ht*
Diffstat (limited to 'src/lst')
-rw-r--r--src/lst/ft_lstlfind.c2
-rw-r--r--src/lst/ft_lstremove_if.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lst/ft_lstlfind.c b/src/lst/ft_lstlfind.c
index ddb890b..92d37d8 100644
--- a/src/lst/ft_lstlfind.c
+++ b/src/lst/ft_lstlfind.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/17 03:04:52 by cacharle #+# #+# */
-/* Updated: 2020/02/17 03:34:19 by cacharle ### ########.fr */
+/* Updated: 2020/02/19 02:03:11 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
diff --git a/src/lst/ft_lstremove_if.c b/src/lst/ft_lstremove_if.c
index 488539e..5221ae4 100644
--- a/src/lst/ft_lstremove_if.c
+++ b/src/lst/ft_lstremove_if.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/30 09:36:49 by cacharle #+# #+# */
-/* Updated: 2020/02/16 03:57:07 by cacharle ### ########.fr */
+/* Updated: 2020/02/19 02:06:22 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -20,7 +20,7 @@ void ft_lstremove_if(t_ftlst **lst, t_ftcompar_func cmp,
if (lst == NULL || *lst == NULL)
return ;
- if (cmp((*lst)->content, ref) == 0)
+ if (cmp(ref, (*lst)->content) == 0)
{
saved_next = (*lst)->next;
ft_lstdelone(*lst, del);