mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-12 12:57:42 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user