diff options
author | peter <peter@FreeBSD.org> | 2003-12-23 02:28:42 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-12-23 02:28:42 +0000 |
commit | 0d11c5c3c46753d922dd93a7df485bfe827c5e48 (patch) | |
tree | 03cea0cf8b3ce12b1412b38e6d87065b367aafda /sys | |
parent | d739bab30003e2f92170a16fcd0f16ab49012d81 (diff) | |
download | FreeBSD-src-0d11c5c3c46753d922dd93a7df485bfe827c5e48.zip FreeBSD-src-0d11c5c3c46753d922dd93a7df485bfe827c5e48.tar.gz |
Don't use NULL (pointer) when we mean 0 (integer) for the number of ticks
in msleep.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_kse.c | 2 | ||||
-rw-r--r-- | sys/kern/kern_thread.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index a08805e..b95e8b6 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1769,7 +1769,7 @@ thread_userret(struct thread *td, struct trapframe *frame) break; mtx_unlock_spin(&sched_lock); if (msleep(&p->p_numthreads, &p->p_mtx, PPAUSE|PCATCH, - "maxthreads", NULL)) { + "maxthreads", 0)) { mtx_lock_spin(&sched_lock); break; } else { diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index a08805e..b95e8b6 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1769,7 +1769,7 @@ thread_userret(struct thread *td, struct trapframe *frame) break; mtx_unlock_spin(&sched_lock); if (msleep(&p->p_numthreads, &p->p_mtx, PPAUSE|PCATCH, - "maxthreads", NULL)) { + "maxthreads", 0)) { mtx_lock_spin(&sched_lock); break; } else { |