aboutsummaryrefslogtreecommitdiff
path: root/src/ht/ft_htset.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-30 20:57:29 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-30 20:57:29 +0100
commit3b884e3836c70b1a19eb7778308fadbc608b0384 (patch)
treee57b327c39e4c16fbd8ad1b1a1511f143df71cdd /src/ht/ft_htset.c
parent6500b1ca9ce911d3db7c94ee3f4ee38489b8861a (diff)
downloadlibft-3b884e3836c70b1a19eb7778308fadbc608b0384.tar.gz
libft-3b884e3836c70b1a19eb7778308fadbc608b0384.tar.bz2
libft-3b884e3836c70b1a19eb7778308fadbc608b0384.zip
making hashtable compile
Diffstat (limited to 'src/ht/ft_htset.c')
-rw-r--r--src/ht/ft_htset.c5
1 files changed, 3 insertions, 2 deletions
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);