diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-12-16 16:28:58 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-12-16 16:28:58 +0000 |
commit | 4c56fcdead10b8ef044580b72b01ed8c6bb2525b (patch) | |
tree | 67161aedb560f7cd1292d6eb600e20458ed46bad /sys/amd64 | |
parent | 2caecceeb5f2099e400de3515a0e28ee619c9b0f (diff) | |
download | src-4c56fcdead10b8ef044580b72b01ed8c6bb2525b.tar.gz src-4c56fcdead10b8ef044580b72b01ed8c6bb2525b.zip |
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.
Notes
Notes:
svn path=/head/; revision=41871
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 3af191760209..45c5e8fe7537 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; |