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/nfsserver/nfs_srvcache.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/nfsserver/nfs_srvcache.c')
-rw-r--r-- | sys/nfsserver/nfs_srvcache.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/nfsserver/nfs_srvcache.c b/sys/nfsserver/nfs_srvcache.c index 5cdd84c..f496ea1 100644 --- a/sys/nfsserver/nfs_srvcache.c +++ b/sys/nfsserver/nfs_srvcache.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_srvcache.c 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: nfs_srvcache.c,v 1.3 1994/08/02 07:52:12 davidg Exp $ */ /* @@ -237,7 +237,8 @@ loop: } rp->rc_flag |= RC_LOCKED; /* remove from hash chain */ - if (rq = rp->rc_forw) + rq = rp->rc_forw; + if (rq) rq->rc_back = rp->rc_back; *rp->rc_back = rq; /* remove from LRU chain */ @@ -270,7 +271,8 @@ loop: }; rp->rc_proc = nd->nd_procnum; /* insert into hash chain */ - if (rq = *rpp) + rq = *rpp; + if (rq) rq->rc_back = &rp->rc_forw; rp->rc_forw = rq; rp->rc_back = rpp; |