From 7b9dc76b762c332efb38713c18c2d0a20a25d4d0 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 16 Dec 1998 16:28:58 +0000 Subject: 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. --- sys/compat/linux/linux_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/compat/linux/linux_util.h') diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h index 58a477d..07a2d3c 100644 --- a/sys/compat/linux/linux_util.h +++ b/sys/compat/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); } -- cgit v1.1