From: Wouter Wijngaards Date: Tue, 3 Apr 2007 09:44:37 +0000 (+0000) Subject: more fixup X-Git-Tag: release-0.2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b0dd88182528cde37cfbdb39f16b57d8352b7c4;p=thirdparty%2Funbound.git more fixup git-svn-id: file:///svn/unbound/trunk@216 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/unitlruhash.c b/testcode/unitlruhash.c index 72138f0e9..4f3cda9de 100644 --- a/testcode/unitlruhash.c +++ b/testcode/unitlruhash.c @@ -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); } diff --git a/testcode/unitslabhash.c b/testcode/unitslabhash.c index e6bf7bbde..3aa43c405 100644 --- a/testcode/unitslabhash.c +++ b/testcode/unitslabhash.c @@ -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); }