summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-02-12 08:59:33 +0000
committerkevlo <kevlo@FreeBSD.org>2007-02-12 08:59:33 +0000
commit7afc90147a1e022b2f9f26da7c4d03f618b1f2f8 (patch)
tree350e4735ddc83ad8abb878bfdc10e591d6aa762d /sys
parent6868162c20baa4195d290b67f93b1a81adbd7e86 (diff)
downloadFreeBSD-src-7afc90147a1e022b2f9f26da7c4d03f618b1f2f8.zip
FreeBSD-src-7afc90147a1e022b2f9f26da7c4d03f618b1f2f8.tar.gz
Remove the cast to caddr_t for sfp, they're not needed.
Reviewed by: marcel
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/aim/machdep.c4
-rw-r--r--sys/powerpc/powerpc/machdep.c4
2 files changed, 4 insertions, 4 deletions
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.
*/
OpenPOWER on IntegriCloud