diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-03-31 21:31:26 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-03-31 21:31:26 +0200 |
| commit | 808d1499f5708ad4eda3612416e62efe6fdff021 (patch) | |
| tree | 1a2da935d99724de64dfc9b77347c1f5805d9256 /src/utils.c | |
| parent | 941099778b59da6b904c284e8a82affe4766124b (diff) | |
| download | minishell-808d1499f5708ad4eda3612416e62efe6fdff021.tar.gz minishell-808d1499f5708ad4eda3612416e62efe6fdff021.tar.bz2 minishell-808d1499f5708ad4eda3612416e62efe6fdff021.zip | |
More specific AST struct and evaluation start
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 13 |
1 files changed, 7 insertions, 6 deletions
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); } |
