diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-30 20:57:29 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-30 20:57:29 +0100 |
| commit | 3b884e3836c70b1a19eb7778308fadbc608b0384 (patch) | |
| tree | e57b327c39e4c16fbd8ad1b1a1511f143df71cdd /src/ht/ft_htset.c | |
| parent | 6500b1ca9ce911d3db7c94ee3f4ee38489b8861a (diff) | |
| download | libft-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.c | 5 |
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); |
