diff options
author | bde <bde@FreeBSD.org> | 1998-12-16 16:28:58 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-12-16 16:28:58 +0000 |
commit | 7b9dc76b762c332efb38713c18c2d0a20a25d4d0 (patch) | |
tree | 03e1009a8b165fa0765493fb3ca3d0ecab2f762b /sys/amd64 | |
parent | 6e5fef184259ee17f628443ebdbac4fc70755766 (diff) | |
download | FreeBSD-src-7b9dc76b762c332efb38713c18c2d0a20a25d4d0.zip FreeBSD-src-7b9dc76b762c332efb38713c18c2d0a20a25d4d0.tar.gz |
Removed the cast to a pointer in the definition of PS_STRINGS and
adjusted related casts to match (only in the kernel in this commit).
The pointer was only wanted in one place in kern_exec.c. Applications
should use the kern.ps_strings sysctl instead of PS_STRINGS, so they
shouldn't notice this change.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 3af1917..45c5e8f 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.317 1998/12/02 08:15:16 kato Exp $ + * $Id: machdep.c,v 1.318 1998/12/10 01:49:01 steve Exp $ */ #include "apm.h" @@ -620,7 +620,7 @@ sendsig(catcher, sig, mask, code) } regs->tf_esp = (int)fp; - regs->tf_eip = (int)(((char *)PS_STRINGS) - *(p->p_sysent->sv_szsigcode)); + regs->tf_eip = PS_STRINGS - *(p->p_sysent->sv_szsigcode); regs->tf_cs = _ucodesel; regs->tf_ds = _udatasel; regs->tf_es = _udatasel; |