mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 15:48:48 -04:00
Added a set of braces to make the compiler happy.
This commit is contained in:
parent
7dd147b45b
commit
2547597bf4
2 changed files with 6 additions and 4 deletions
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
|
||||
* $Id: vfs_syscalls.c,v 1.19 1995/03/16 18:12:50 bde Exp $
|
||||
* $Id: vfs_syscalls.c,v 1.20 1995/03/19 11:16:58 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -1848,8 +1848,9 @@ rename(p, uap, retval)
|
|||
out:
|
||||
if (!error) {
|
||||
LEASE_CHECK(tdvp, p, p->p_ucred, LEASE_WRITE);
|
||||
if (fromnd.ni_dvp != tdvp)
|
||||
if (fromnd.ni_dvp != tdvp) {
|
||||
LEASE_CHECK(fromnd.ni_dvp, p, p->p_ucred, LEASE_WRITE);
|
||||
}
|
||||
if (tvp) {
|
||||
LEASE_CHECK(tvp, p, p->p_ucred, LEASE_WRITE);
|
||||
(void) vnode_pager_uncache(tvp);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
|
||||
* $Id: vfs_syscalls.c,v 1.19 1995/03/16 18:12:50 bde Exp $
|
||||
* $Id: vfs_syscalls.c,v 1.20 1995/03/19 11:16:58 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -1848,8 +1848,9 @@ rename(p, uap, retval)
|
|||
out:
|
||||
if (!error) {
|
||||
LEASE_CHECK(tdvp, p, p->p_ucred, LEASE_WRITE);
|
||||
if (fromnd.ni_dvp != tdvp)
|
||||
if (fromnd.ni_dvp != tdvp) {
|
||||
LEASE_CHECK(fromnd.ni_dvp, p, p->p_ucred, LEASE_WRITE);
|
||||
}
|
||||
if (tvp) {
|
||||
LEASE_CHECK(tvp, p, p->p_ucred, LEASE_WRITE);
|
||||
(void) vnode_pager_uncache(tvp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue