diff options
author | dg <dg@FreeBSD.org> | 1994-10-25 11:27:51 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-25 11:27:51 +0000 |
commit | d31e603a0659b0df18633c1a61f6f9787442b329 (patch) | |
tree | b1288261503525448a7cc9dcb6b3643d47c7a924 /sys/kern/kern_lockf.c | |
parent | 5eb85325634e77b5601c343fab80020e8bd389c9 (diff) | |
download | FreeBSD-src-d31e603a0659b0df18633c1a61f6f9787442b329.zip FreeBSD-src-d31e603a0659b0df18633c1a61f6f9787442b329.tar.gz |
Changed some variable names in lf_addblock to make the code both
understandable and conform to other conventions used in the file.
Diffstat (limited to 'sys/kern/kern_lockf.c')
-rw-r--r-- | sys/kern/kern_lockf.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c index 654e0f2..aebcbf2 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.1 1994/08/08 17:30:48 davidg Exp $ + * $Id: kern_lockf.c,v 1.2 1994/09/25 19:33:37 phk Exp $ */ #include <sys/param.h> @@ -642,27 +642,27 @@ lf_findoverlap(lf, lock, type, prev, overlap) * Add a lock to the end of the blocked list. */ void -lf_addblock(lock, blocked) +lf_addblock(blocklist, lock) + struct lockf *blocklist; struct lockf *lock; - struct lockf *blocked; { register struct lockf *lf; - if (blocked == NOLOCKF) + if (lock == NOLOCKF) return; #ifdef LOCKF_DEBUG if (lockf_debug & 2) { - lf_print("addblock: adding", blocked); - lf_print("to blocked list of", lock); + lf_print("addblock: adding", lock); + lf_print("to blocked list of", blocklist); } #endif /* LOCKF_DEBUG */ - if ((lf = lock->lf_block) == NOLOCKF) { - lock->lf_block = blocked; + if ((lf = blocklist->lf_block) == NOLOCKF) { + blocklist->lf_block = lock; return; } while (lf->lf_block != NOLOCKF) lf = lf->lf_block; - lf->lf_block = blocked; + lf->lf_block = lock; return; } |