]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
more fixup
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Apr 2007 09:44:37 +0000 (09:44 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Apr 2007 09:44:37 +0000 (09:44 +0000)
git-svn-id: file:///svn/unbound/trunk@216 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/unitlruhash.c
testcode/unitslabhash.c

index 72138f0e99c3a663aecdb7d9e6e48571fcb3197a..4f3cda9dee638917f576e92d80438f19e1eaa87a 100644 (file)
@@ -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);
 }
 
index e6bf7bbde4c8ef6a3ada77bd6beda8dd0bfd44d5..3aa43c405df977dc9e4d1673d949f493450254aa 100644 (file)
@@ -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);
 }