summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/ibcs2_util.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-12-16 16:28:58 +0000
committerbde <bde@FreeBSD.org>1998-12-16 16:28:58 +0000
commit7b9dc76b762c332efb38713c18c2d0a20a25d4d0 (patch)
tree03e1009a8b165fa0765493fb3ca3d0ecab2f762b /sys/i386/ibcs2/ibcs2_util.h
parent6e5fef184259ee17f628443ebdbac4fc70755766 (diff)
downloadFreeBSD-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/i386/ibcs2/ibcs2_util.h')
-rw-r--r--sys/i386/ibcs2/ibcs2_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/ibcs2/ibcs2_util.h b/sys/i386/ibcs2/ibcs2_util.h
index e616234..4ef390f 100644
--- a/sys/i386/ibcs2/ibcs2_util.h
+++ b/sys/i386/ibcs2/ibcs2_util.h
@@ -61,7 +61,7 @@ static __inline caddr_t
stackgap_init()
{
#define szsigcode (*(curproc->p_sysent->sv_szsigcode))
- return (caddr_t)(((caddr_t)PS_STRINGS) - szsigcode - SPARE_USRSPACE);
+ return (caddr_t)(PS_STRINGS - szsigcode - SPARE_USRSPACE);
}
static __inline void *
OpenPOWER on IntegriCloud