mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- braces in view.c around lock statements.
git-svn-id: file:///svn/unbound/trunk@3939 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
e502757963
commit
6450a5b191
2 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
29 November 2016: Wouter
|
||||
- version 1.6.0 is in the development branch.
|
||||
- braces in view.c around lock statements.
|
||||
|
||||
28 November 2016: Wouter
|
||||
- new install-sh.
|
||||
|
|
|
|||
|
|
@ -191,10 +191,11 @@ views_find_view(struct views* vs, const char* name, int write)
|
|||
lock_rw_unlock(&vs->lock);
|
||||
return 0;
|
||||
}
|
||||
if(write)
|
||||
if(write) {
|
||||
lock_rw_wrlock(&v->lock);
|
||||
else
|
||||
} else {
|
||||
lock_rw_rdlock(&v->lock);
|
||||
}
|
||||
lock_rw_unlock(&vs->lock);
|
||||
return v;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue