diff options
-rw-r--r-- | sys/pc98/i386/machdep.c | 4 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 2abab99..c2c0ccc 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -725,11 +725,11 @@ sigreturn(td, uap) { struct proc *p = td->td_proc; struct trapframe *regs; - ucontext_t *ucp; + const ucontext_t *ucp; int cs, eflags; ucp = uap->sigcntxp; - if (!useracc((caddr_t)ucp, sizeof(*ucp), VM_PROT_READ)) + if (!useracc((caddr_t)(uintptr_t)ucp, sizeof(*ucp), VM_PROT_READ)) return (EFAULT); regs = td->td_frame; eflags = ucp->uc_mcontext.mc_eflags; diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 2abab99..c2c0ccc 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -725,11 +725,11 @@ sigreturn(td, uap) { struct proc *p = td->td_proc; struct trapframe *regs; - ucontext_t *ucp; + const ucontext_t *ucp; int cs, eflags; ucp = uap->sigcntxp; - if (!useracc((caddr_t)ucp, sizeof(*ucp), VM_PROT_READ)) + if (!useracc((caddr_t)(uintptr_t)ucp, sizeof(*ucp), VM_PROT_READ)) return (EFAULT); regs = td->td_frame; eflags = ucp->uc_mcontext.mc_eflags; |