mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-31 03:49:35 -05:00
more fixup
git-svn-id: file:///svn/unbound/trunk@216 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
f262c2c051
commit
0b0dd88182
2 changed files with 4 additions and 4 deletions
|
|
@ -285,7 +285,7 @@ testlookup(struct lruhash* table, struct testdata* ref[])
|
|||
if(0) log_info("lookup %d got %d, expect %d", num, en? data->data :-1,
|
||||
ref[num]? ref[num]->data : -1);
|
||||
unit_assert( data == ref[num] );
|
||||
if(en) lock_rw_unlock(&en->lock);
|
||||
if(en) { lock_rw_unlock(&en->lock); }
|
||||
delkey(key);
|
||||
}
|
||||
|
||||
|
|
@ -368,7 +368,7 @@ testlookup_unlim(struct lruhash* table, struct testdata** ref)
|
|||
/* its okay for !data, it fell off the lru */
|
||||
unit_assert( data == ref[num] );
|
||||
}
|
||||
if(en) lock_rw_unlock(&en->lock);
|
||||
if(en) { lock_rw_unlock(&en->lock); }
|
||||
delkey(key);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ testlookup(struct slabhash* table, struct slabtestdata* ref[])
|
|||
if(0) log_info("lookup %d got %d, expect %d", num, en? data->data :-1,
|
||||
ref[num]? ref[num]->data : -1);
|
||||
unit_assert( data == ref[num] );
|
||||
if(en) lock_rw_unlock(&en->lock);
|
||||
if(en) { lock_rw_unlock(&en->lock); }
|
||||
delkey(key);
|
||||
}
|
||||
|
||||
|
|
@ -254,7 +254,7 @@ testlookup_unlim(struct slabhash* table, struct slabtestdata** ref)
|
|||
/* its okay for !data, it fell off the lru */
|
||||
unit_assert( data == ref[num] );
|
||||
}
|
||||
if(en) lock_rw_unlock(&en->lock);
|
||||
if(en) { lock_rw_unlock(&en->lock); }
|
||||
delkey(key);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue