From 92600a3b30619f19faaca4c46738d8e1429ad629 Mon Sep 17 00:00:00 2001 From: Stathis Kamperis Date: Fri, 7 Sep 2007 22:45:05 +0300 Subject: [PATCH] Fix comment in previous commit --- genstructs/htable/htable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genstructs/htable/htable.c b/genstructs/htable/htable.c index 8ffc3f1..380638a 100644 --- a/genstructs/htable/htable.c +++ b/genstructs/htable/htable.c @@ -60,8 +60,8 @@ void htable_delete(htable_t *htable, const void *key) /* Calculate hash */ hash = htable->ht_hashf(key); - /* Search across chain if there is already an entry - with the same key. If there is, replace it. */ + /* Search across chain if there is an entry with the + key we are looking. If there is, delete it. */ phead = &htable->ht_table[hash & (htable->ht_size - 1)]; TAILQ_FOREACH(pnode, phead, hn_next) -- 2.11.4.GIT