summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index 6b8023d..5a0d8c0 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -1510,7 +1510,8 @@ sigreturn(struct thread *td,
const struct __ucontext *sigcntxp;
} */ *uap)
{
- ucontext_t uc, *ucp;
+ ucontext_t uc;
+ const ucontext_t *ucp;
struct pcb *pcb;
unsigned long val;
struct proc *p;
@@ -1530,7 +1531,7 @@ sigreturn(struct thread *td,
* so even if copyin() faults, we may have actually gotten a complete
* struct osigcontext.
*/
- if (copyin((caddr_t)ucp, (caddr_t)&uc, sizeof(ucontext_t))) {
+ if (copyin(ucp, &uc, sizeof(ucontext_t))) {
#ifdef COMPAT_43
if (((struct osigcontext*)&uc)->sc_regs[R_ZERO] == 0xACEDBADE)
return osigreturn(td, (struct osigreturn_args *)uap);
OpenPOWER on IntegriCloud