From 0b0dd88182528cde37cfbdb39f16b57d8352b7c4 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 3 Apr 2007 09:44:37 +0000 Subject: [PATCH] more fixup git-svn-id: file:///svn/unbound/trunk@216 be551aaa-1e26-0410-a405-d3ace91eadb9 --- testcode/unitlruhash.c | 4 ++-- testcode/unitslabhash.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.47.2