diff options
author | peter <peter@FreeBSD.org> | 2002-02-26 01:00:39 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-02-26 01:00:39 +0000 |
commit | c3e9a433a0908d837d5a41b2a292c179fbf04f73 (patch) | |
tree | ebd0d9784162b4b688390e24f769dac7f083c7b7 /sys/amd64 | |
parent | 7289c78db5067b0c086d39dcc917a2bbd90f4bf8 (diff) | |
download | FreeBSD-src-c3e9a433a0908d837d5a41b2a292c179fbf04f73.zip FreeBSD-src-c3e9a433a0908d837d5a41b2a292c179fbf04f73.tar.gz |
Fix a warning. useracc() should take a const pointer argument.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 43a4c8b..bb6d420 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -712,11 +712,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; |