diff options
author | phk <phk@FreeBSD.org> | 1994-10-02 17:27:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-10-02 17:27:07 +0000 |
commit | 42a70cf15d0f6b56dfc6a6a731adc52eaaa456f0 (patch) | |
tree | 872dcb4237f95fe1c61b19e3e868408388109a43 /sys/nfs/nfs_node.c | |
parent | b1b8768e6a30f06704cfedaeae8f3397ad760a4e (diff) | |
download | FreeBSD-src-42a70cf15d0f6b56dfc6a6a731adc52eaaa456f0.zip FreeBSD-src-42a70cf15d0f6b56dfc6a6a731adc52eaaa456f0.tar.gz |
Prototyping and general gcc-shutting up. Gcc has one warning now which looks
bad, I will get to it eventually, unless somebody beats me to it.
Diffstat (limited to 'sys/nfs/nfs_node.c')
-rw-r--r-- | sys/nfs/nfs_node.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c index 00e42c2..974edde 100644 --- a/sys/nfs/nfs_node.c +++ b/sys/nfs/nfs_node.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_node.c 8.2 (Berkeley) 12/30/93 - * $Id: nfs_node.c,v 1.3 1994/08/02 07:52:06 davidg Exp $ + * $Id: nfs_node.c,v 1.4 1994/08/10 19:48:23 davidg Exp $ */ #include <sys/param.h> @@ -123,7 +123,8 @@ loop: *npp = np; return(0); } - if (error = getnewvnode(VT_NFS, mntp, nfsv2_vnodeop_p, &nvp)) { + error = getnewvnode(VT_NFS, mntp, nfsv2_vnodeop_p, &nvp); + if (error) { *npp = 0; return (error); } @@ -135,7 +136,8 @@ loop: * Insert the nfsnode in the hash queue for its new file handle */ np->n_flag = 0; - if (nq = *nhpp) + nq = *nhpp; + if (nq) nq->n_back = &np->n_forw; np->n_forw = nq; np->n_back = nhpp; @@ -210,7 +212,8 @@ nfs_reclaim(ap) /* * Remove the nfsnode from its hash chain. */ - if (nq = np->n_forw) + nq = np->n_forw; + if (nq) nq->n_back = np->n_back; *np->n_back = nq; |