aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-03-13 19:16:41 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-03-13 19:16:41 +0000
commit830c02d42680fd438f9be93205a00f3d46b73188 (patch)
tree5b7fed3967247820b607a23b2c8d80ba93981292
parent979f47f40d0d2d811bcb74a77d24b2d7302b6218 (diff)
Notes
-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 6b8023d991636..5a0d8c0db22c8 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);