summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-10-20 20:24:40 +0000
committerjhb <jhb@FreeBSD.org>2000-10-20 20:24:40 +0000
commit3fecd0dfbcf0e2653c066470bb3511f94bfdc487 (patch)
treed71fe75dfa716662ae0fb9fae634db2c8039a72b /sys/kern/kern_mutex.c
parent6a7bc03c34cec50859aaeaf9ecf9fab747ce7e2a (diff)
downloadFreeBSD-src-3fecd0dfbcf0e2653c066470bb3511f94bfdc487.zip
FreeBSD-src-3fecd0dfbcf0e2653c066470bb3511f94bfdc487.tar.gz
Doh. Fix a 64-bit-ism by using uintptr_t for a temporary lock variable
instead of int.
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 4141dbf..6be7589 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -232,7 +232,7 @@ mtx_enter_hard(struct mtx *m, int type, int saveintr)
CTR3(KTR_LOCK, "mtx_enter: 0x%p contested (lock=%p) [0x%p]",
m, m->mtx_lock, RETIP(m));
while (!_obtain_lock(m, p)) {
- int v;
+ uintptr_t v;
struct proc *p1;
mtx_enter(&sched_lock, MTX_SPIN | MTX_RLIKELY);
OpenPOWER on IntegriCloud