diff options
author | nyan <nyan@FreeBSD.org> | 2002-03-02 13:19:22 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2002-03-02 13:19:22 +0000 |
commit | 0ca2481527f8f589a619353df3c90babdaf2a405 (patch) | |
tree | ae56707017030be8cd39a8053cb3c2c5c8aa6ecb | |
parent | af34f116bc52bfaa9cd07915847be4f81f91c2a4 (diff) | |
download | FreeBSD-src-0ca2481527f8f589a619353df3c90babdaf2a405.zip FreeBSD-src-0ca2481527f8f589a619353df3c90babdaf2a405.tar.gz |
MFi386: revision 1.498.
-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; |