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/sys/exec.h | |
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/sys/exec.h')
-rw-r--r-- | sys/sys/exec.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sys/exec.h b/sys/sys/exec.h index 261791a..2ed6112 100644 --- a/sys/sys/exec.h +++ b/sys/sys/exec.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)exec.h 8.3 (Berkeley) 1/21/94 - * $Id: exec.h,v 1.19 1998/10/16 03:55:01 peter Exp $ + * $Id: exec.h,v 1.20 1998/11/15 15:33:52 bde Exp $ */ #ifndef _SYS_EXEC_H_ @@ -60,8 +60,7 @@ struct ps_strings { /* * Address of ps_strings structure (in user space). */ -#define PS_STRINGS ((struct ps_strings *) \ - (USRSTACK - sizeof(struct ps_strings))) +#define PS_STRINGS (USRSTACK - sizeof(struct ps_strings)) #define SPARE_USRSPACE 256 struct image_params; |