diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-27 22:45:13 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-27 22:45:13 +0000 |
commit | 72e4bdcf94f384780663f18c859f45e791b82965 (patch) | |
tree | 2ff847e3a662ad7825ba96021a514c91d000822f /sys/nfs | |
parent | dbf5cd2b57217eb6c73488177fc6a096ead934b6 (diff) | |
download | FreeBSD-src-72e4bdcf94f384780663f18c859f45e791b82965.zip FreeBSD-src-72e4bdcf94f384780663f18c859f45e791b82965.tar.gz |
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 4131b60..bbcd570 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.116 1999/01/12 12:39:14 eivind Exp $ + * $Id: nfs_vnops.c,v 1.117 1999/01/21 08:29:07 dillon Exp $ */ @@ -376,7 +376,7 @@ nfs_access(ap) } return (error); } else { - if (error = nfsspec_access(ap)) + if ((error = nfsspec_access(ap)) != 0) return (error); /* @@ -794,7 +794,7 @@ nfs_lookup(ap) struct vattr vattr; int vpid; - if (error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred, p)) { + if ((error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred, p)) != 0) { *vpp = NULLVP; return (error); } @@ -1225,7 +1225,7 @@ nfs_mknodrpc(dvp, vpp, cnp, vap) VOP_ABORTOP(dvp, cnp); return (EOPNOTSUPP); } - if (error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred, cnp->cn_proc)) { + if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred, cnp->cn_proc)) != 0) { VOP_ABORTOP(dvp, cnp); return (error); } @@ -1341,7 +1341,7 @@ nfs_create(ap) if (vap->va_type == VSOCK) return (nfs_mknodrpc(dvp, ap->a_vpp, cnp, vap)); - if (error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred, cnp->cn_proc)) { + if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred, cnp->cn_proc)) != 0) { VOP_ABORTOP(dvp, cnp); return (error); } @@ -1819,7 +1819,7 @@ nfs_mkdir(ap) struct vattr vattr; int v3 = NFS_ISV3(dvp); - if (error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred, cnp->cn_proc)) { + if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred, cnp->cn_proc)) != 0) { VOP_ABORTOP(dvp, cnp); return (error); } |