diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 01689f9e56a0..a99685b5abda 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -533,7 +533,7 @@ osendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) else { /* Old FreeBSD-style arguments. */ sf.sf_arg2 = code; - sf.sf_addr = (register_t *)regs->tf_err; + sf.sf_addr = regs->tf_err; sf.sf_ahu.sf_handler = catcher; } @@ -686,7 +686,7 @@ sendsig(catcher, sig, mask, code) else { /* Old FreeBSD-style arguments. */ sf.sf_siginfo = code; - sf.sf_addr = (register_t *)regs->tf_err; + sf.sf_addr = regs->tf_err; sf.sf_ahu.sf_handler = catcher; } diff --git a/sys/amd64/include/sigframe.h b/sys/amd64/include/sigframe.h index eedc8c1941fe..cf764530c0cd 100644 --- a/sys/amd64/include/sigframe.h +++ b/sys/amd64/include/sigframe.h @@ -51,7 +51,7 @@ struct osigframe { /* Points to sf_siginfo.si_sc. */ register_t sf_scp; - register_t *sf_addr; + register_t sf_addr; /* * The following arguments are not constrained by the @@ -81,7 +81,7 @@ struct sigframe { register_t sf_signum; register_t sf_siginfo; /* code or pointer to sf_si */ register_t sf_ucontext; /* points to sf_uc */ - register_t *sf_addr; /* undocumented 4th arg */ + register_t sf_addr; /* undocumented 4th arg */ union { __siginfohandler_t *sf_action; diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 01689f9e56a0..a99685b5abda 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -533,7 +533,7 @@ osendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) else { /* Old FreeBSD-style arguments. */ sf.sf_arg2 = code; - sf.sf_addr = (register_t *)regs->tf_err; + sf.sf_addr = regs->tf_err; sf.sf_ahu.sf_handler = catcher; } @@ -686,7 +686,7 @@ sendsig(catcher, sig, mask, code) else { /* Old FreeBSD-style arguments. */ sf.sf_siginfo = code; - sf.sf_addr = (register_t *)regs->tf_err; + sf.sf_addr = regs->tf_err; sf.sf_ahu.sf_handler = catcher; } diff --git a/sys/i386/include/sigframe.h b/sys/i386/include/sigframe.h index eedc8c1941fe..cf764530c0cd 100644 --- a/sys/i386/include/sigframe.h +++ b/sys/i386/include/sigframe.h @@ -51,7 +51,7 @@ struct osigframe { /* Points to sf_siginfo.si_sc. */ register_t sf_scp; - register_t *sf_addr; + register_t sf_addr; /* * The following arguments are not constrained by the @@ -81,7 +81,7 @@ struct sigframe { register_t sf_signum; register_t sf_siginfo; /* code or pointer to sf_si */ register_t sf_ucontext; /* points to sf_uc */ - register_t *sf_addr; /* undocumented 4th arg */ + register_t sf_addr; /* undocumented 4th arg */ union { __siginfohandler_t *sf_action;