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/pc98 | |
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/pc98')
-rw-r--r-- | sys/pc98/i386/machdep.c | 4 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 0508aed..121a21d 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.101 1998/12/02 08:15:17 kato Exp $ + * $Id: machdep.c,v 1.102 1998/12/11 08:04:33 kato Exp $ */ #include "apm.h" @@ -633,7 +633,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; diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 0508aed..121a21d 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.101 1998/12/02 08:15:17 kato Exp $ + * $Id: machdep.c,v 1.102 1998/12/11 08:04:33 kato Exp $ */ #include "apm.h" @@ -633,7 +633,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; |