mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-13 05:17:44 +02:00
more fixup
git-svn-id: file:///svn/unbound/trunk@216 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user