diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 1999-01-27 21:50:00 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 1999-01-27 21:50:00 +0000 |
| commit | d254af07a14b8ea8891c2369150729943aa142df (patch) | |
| tree | 2f1d801e18eaabd9c7650b3093c05f623b35ce3e /sys/kern/kern_lockf.c | |
| parent | 598217c491a12a9ff390d11f4f469a8444c52e20 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_lockf.c')
| -rw-r--r-- | sys/kern/kern_lockf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c index cc1b8a562f20..6e26959a8e08 100644 --- a/sys/kern/kern_lockf.c +++ b/sys/kern/kern_lockf.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)ufs_lockf.c 8.3 (Berkeley) 1/6/94 - * $Id: kern_lockf.c,v 1.19 1998/07/29 17:38:14 bde Exp $ + * $Id: kern_lockf.c,v 1.20 1998/11/10 09:16:29 peter Exp $ */ #include "opt_debug_lockf.h" @@ -360,7 +360,7 @@ lf_setlock(lock) overlap->lf_type == F_WRLCK) { lf_wakelock(overlap); } else { - while (ltmp = overlap->lf_blkhd.tqh_first) { + while ((ltmp = overlap->lf_blkhd.tqh_first) != NULL) { TAILQ_REMOVE(&overlap->lf_blkhd, ltmp, lf_block); TAILQ_INSERT_TAIL(&lock->lf_blkhd, @@ -717,7 +717,7 @@ lf_wakelock(listhead) { register struct lockf *wakelock; - while (wakelock = listhead->lf_blkhd.tqh_first) { + while ((wakelock = listhead->lf_blkhd.tqh_first) != NULL) { TAILQ_REMOVE(&listhead->lf_blkhd, wakelock, lf_block); wakelock->lf_next = NOLOCKF; #ifdef LOCKF_DEBUG |
