fptrwlist and remove oldhack with islocked param.

git-svn-id: file:///svn/unbound/trunk@805 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-12-04 21:34:53 +00:00
parent 2dbc83d5ae
commit f187e1da7e
17 changed files with 48 additions and 44 deletions
+1 -4
View File
@@ -72,14 +72,11 @@ key_entry_compfunc(void* k1, void* k2)
}
void
key_entry_delkeyfunc(void* key, void* ATTR_UNUSED(userarg), int islocked)
key_entry_delkeyfunc(void* key, void* ATTR_UNUSED(userarg))
{
struct key_entry_key* kk = (struct key_entry_key*)key;
if(!key)
return;
if(islocked) {
lock_rw_unlock(&kk->entry.lock);
}
free(kk->name);
free(kk);
}
+1 -1
View File
@@ -91,7 +91,7 @@ size_t key_entry_sizefunc(void* key, void* data);
int key_entry_compfunc(void* k1, void* k2);
/** function for lruhash operation */
void key_entry_delkeyfunc(void* key, void* userarg, int islocked);
void key_entry_delkeyfunc(void* key, void* userarg);
/** function for lruhash operation */
void key_entry_deldatafunc(void* data, void* userarg);