summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-05-06 18:13:11 +0000
committerpeter <peter@FreeBSD.org>1999-05-06 18:13:11 +0000
commit73556bfee1b1d6dfc2a2f5d400228ca90bb34fc9 (patch)
treecd23f4c8f0d180abffffaece640b7971fd1103e2 /sys/nfsserver
parentff951279f971ed62682d7071d202a8e45e6e32a4 (diff)
downloadFreeBSD-src-73556bfee1b1d6dfc2a2f5d400228ca90bb34fc9.zip
FreeBSD-src-73556bfee1b1d6dfc2a2f5d400228ca90bb34fc9.tar.gz
Add sufficient braces to keep egcs happy about potentially ambiguous
if/else nesting.
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_serv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index 63e8e39..eef3d7f 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95
- * $Id: nfs_serv.c,v 1.74 1999/04/27 11:17:49 phk Exp $
+ * $Id: nfs_serv.c,v 1.75 1999/04/28 11:37:54 phk Exp $
*/
/*
@@ -1921,11 +1921,12 @@ nfsrv_rename(nfsd, slp, procp, mrq)
error = ENOTEMPTY;
goto out;
}
- if (fvp == tdvp)
+ if (fvp == tdvp) {
if (v3)
error = EINVAL;
else
error = ENOTEMPTY;
+ }
/*
* If source is the same as the destination (that is the
* same vnode with the same name in the same directory),
OpenPOWER on IntegriCloud