summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_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/linux/linux_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/linux/linux_util.h')
-rw-r--r--sys/i386/linux/linux_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_util.h b/sys/i386/linux/linux_util.h
index 58a477d..07a2d3c 100644
--- a/sys/i386/linux/linux_util.h
+++ b/sys/i386/linux/linux_util.h
@@ -28,7 +28,7 @@
*
* from: svr4_util.h,v 1.5 1994/11/18 02:54:31 christos Exp
* from: linux_util.h,v 1.2 1995/03/05 23:23:50 fvdl Exp
- * $Id: linux_util.h,v 1.5 1997/02/22 09:38:30 peter Exp $
+ * $Id: linux_util.h,v 1.6 1998/06/30 08:40:33 jmg Exp $
*/
/*
@@ -60,7 +60,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);
}
OpenPOWER on IntegriCloud