From 7afc90147a1e022b2f9f26da7c4d03f618b1f2f8 Mon Sep 17 00:00:00 2001 From: kevlo Date: Mon, 12 Feb 2007 08:59:33 +0000 Subject: Remove the cast to caddr_t for sfp, they're not needed. Reviewed by: marcel --- sys/powerpc/aim/machdep.c | 4 ++-- sys/powerpc/powerpc/machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index 3aa68d9..c2ae648 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -484,7 +484,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) */ if ((td->td_pflags & TDP_ALTSTACK) != 0 && !oonstack && SIGISMEMBER(psp->ps_sigonstack, sig)) { - sfp = (struct sigframe *)((caddr_t)td->td_sigstk.ss_sp + + sfp = (struct sigframe *)(td->td_sigstk.ss_sp + td->td_sigstk.ss_size - rndfsize); } else { sfp = (struct sigframe *)(tf->fixreg[1] - rndfsize); @@ -542,7 +542,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) /* * copy the frame out to userland. */ - if (copyout((caddr_t)&sf, (caddr_t)sfp, sizeof(sf)) != 0) { + if (copyout(&sf, sfp, sizeof(*sfp)) != 0) { /* * Process has trashed its stack. Kill it. */ diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index 3aa68d9..c2ae648 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -484,7 +484,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) */ if ((td->td_pflags & TDP_ALTSTACK) != 0 && !oonstack && SIGISMEMBER(psp->ps_sigonstack, sig)) { - sfp = (struct sigframe *)((caddr_t)td->td_sigstk.ss_sp + + sfp = (struct sigframe *)(td->td_sigstk.ss_sp + td->td_sigstk.ss_size - rndfsize); } else { sfp = (struct sigframe *)(tf->fixreg[1] - rndfsize); @@ -542,7 +542,7 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask) /* * copy the frame out to userland. */ - if (copyout((caddr_t)&sf, (caddr_t)sfp, sizeof(sf)) != 0) { + if (copyout(&sf, sfp, sizeof(*sfp)) != 0) { /* * Process has trashed its stack. Kill it. */ -- cgit v1.1