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_htdestroy.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_htdestroy.c')
| -rw-r--r-- | src/ht/ft_htdestroy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ht/ft_htdestroy.c b/src/ht/ft_htdestroy.c index 6e04386..e0442c6 100644 --- a/src/ht/ft_htdestroy.c +++ b/src/ht/ft_htdestroy.c @@ -11,13 +11,14 @@ /* ************************************************************************** */ #include "libft.h" +#include "libft_ht.h" void ft_htdestroy(t_ftht *ht, void (*del)(t_ftht_content*)) { if (ht == NULL) return ; while (ht->size-- > 0) - ft_lstclear(ht->entries + ht->size, del); + ft_lstclear(ht->entries + ht->size, (void (*)(void*))del); free(ht->entries); free(ht); } |
