Don't use NULL (pointer) when we mean 0 (integer) for the number of ticks

in msleep.
This commit is contained in:
peter 2003-12-23 02:28:42 +00:00
parent d739bab300
commit 0d11c5c3c4
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {