From 3b884e3836c70b1a19eb7778308fadbc608b0384 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 30 Jan 2020 20:57:29 +0100 Subject: making hashtable compile --- src/ht/ft_htset.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ht/ft_htset.c') diff --git a/src/ht/ft_htset.c b/src/ht/ft_htset.c index 32aa448..86e9690 100644 --- a/src/ht/ft_htset.c +++ b/src/ht/ft_htset.c @@ -11,6 +11,7 @@ /* ************************************************************************** */ #include "libft.h" +#include "libft_ht.h" t_ftht_content *ft_htset(t_ftht *ht, char *key, void *value) { @@ -19,10 +20,10 @@ t_ftht_content *ft_htset(t_ftht *ht, char *key, void *value) t_ftht_entry entry; if (ht == NULL || key == NULL) - return (NULL) + return (NULL); if ((content = ft_htcontent_new(key, value)) == NULL) return (NULL); - if ((entry = ft_lstnew(content)) = NULL) + if ((entry = ft_lstnew(content)) == NULL) { free(content); return (NULL); -- cgit