Fix compiling problem for amd64.

This commit is contained in:
David Xu 2008-04-02 05:54:41 +00:00
parent bc8a0d87bd
commit fadd84c58f

View File

@ -3082,7 +3082,7 @@ __umtx_op_rw_wrlock_compat32(struct thread *td, struct _umtx_op_args *uap)
/* Allow a null timespec (wait forever). */
if (uap->uaddr2 == NULL) {
error = do_rwlock_wrlock(td, uap->obj, 0);
error = do_rw_wrlock(td, uap->obj, 0);
} else {
error = copyin_timeout32(uap->uaddr2, &timeout);
if (error != 0)
@ -3092,7 +3092,7 @@ __umtx_op_rw_wrlock_compat32(struct thread *td, struct _umtx_op_args *uap)
return (EINVAL);
}
error = do_rw_wrlock2(td, uap->obj, uap->val, &timeout);
error = do_rw_wrlock2(td, uap->obj, &timeout);
}
return (error);
}