From 808d1499f5708ad4eda3612416e62efe6fdff021 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 31 Mar 2020 21:31:26 +0200 Subject: More specific AST struct and evaluation start --- src/utils.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 2b655bf..815e8e3 100644 --- a/src/utils.c +++ b/src/utils.c @@ -19,14 +19,15 @@ /** ** \brief Delete function for a entry containing a allocated key and value -** \param content Hash table entry content +** \param entry Hash table entry +** */ -void ms_ht_del_str_entry(t_ftht_content *content) +void ms_ht_del_str_entry(t_ftht_entry *entry) { - if (content == NULL) + if (entry == NULL) return ; - free(content->key); - free(content->value); - free(content); + free(entry->key); + free(entry->value); + free(entry); } -- cgit