diff options
author | des <des@FreeBSD.org> | 2002-03-13 19:16:41 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-03-13 19:16:41 +0000 |
commit | 4b05a4140f4110bcd65b427e2ac50d88cba69e20 (patch) | |
tree | 5b7fed3967247820b607a23b2c8d80ba93981292 /sys/alpha | |
parent | 3f3959c142636817438ccdf9bb234f72e44745f2 (diff) | |
download | FreeBSD-src-4b05a4140f4110bcd65b427e2ac50d88cba69e20.zip FreeBSD-src-4b05a4140f4110bcd65b427e2ac50d88cba69e20.tar.gz |
Remove a bogus cast and deconstification that broke the Alpha kernel build.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/machdep.c | 5 |
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); |