diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-12-16 16:28:58 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-12-16 16:28:58 +0000 |
commit | 4c56fcdead10b8ef044580b72b01ed8c6bb2525b (patch) | |
tree | 67161aedb560f7cd1292d6eb600e20458ed46bad /sys/sys/exec.h | |
parent | 2caecceeb5f2099e400de3515a0e28ee619c9b0f (diff) | |
download | src-4c56fcdead10b8ef044580b72b01ed8c6bb2525b.tar.gz src-4c56fcdead10b8ef044580b72b01ed8c6bb2525b.zip |
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.
Notes
Notes:
svn path=/head/; revision=41871
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 261791a4d2b1..2ed6112c3b24 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; |