diff options
author | marcel <marcel@FreeBSD.org> | 1999-12-04 10:40:24 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-12-04 10:40:24 +0000 |
commit | 404e06a7ba75f4d7f90101a658a55be1bb810632 (patch) | |
tree | 0336d6a3a4b9a9e0ce42f17c5c870f68d95c062c /sys/amd64 | |
parent | 07a453ccf293f68541c5a5a6637a95685be3a010 (diff) | |
download | FreeBSD-src-404e06a7ba75f4d7f90101a658a55be1bb810632.zip FreeBSD-src-404e06a7ba75f4d7f90101a658a55be1bb810632.tar.gz |
Fix type of sf_addr.
Pointed out by: bde
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 4 | ||||
-rw-r--r-- | sys/amd64/include/sigframe.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 01689f9..a99685b 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 eedc8c1..cf76453 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; |