summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
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/kern/kern_exec.c
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/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 84d4d46..e3a3b71 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_exec.c,v 1.88 1998/10/28 13:36:58 dg Exp $
+ * $Id: kern_exec.c,v 1.89 1998/12/16 16:06:27 bde Exp $
*/
#include <sys/param.h>
@@ -66,8 +66,7 @@
static long *exec_copyout_strings __P((struct image_params *));
-SYSCTL_LONG(_kern, KERN_PS_STRINGS, ps_strings, CTLFLAG_RD, 0,
- (u_long)PS_STRINGS, "");
+SYSCTL_LONG(_kern, KERN_PS_STRINGS, ps_strings, CTLFLAG_RD, 0, PS_STRINGS, "");
SYSCTL_LONG(_kern, KERN_USRSTACK, usrstack, CTLFLAG_RD, 0, USRSTACK, "");
/*
@@ -548,7 +547,7 @@ exec_copyout_strings(imgp)
* Calculate string base and vector table pointers.
* Also deal with signal trampoline code for this exec type.
*/
- arginfo = PS_STRINGS;
+ arginfo = (struct ps_strings *)PS_STRINGS;
szsigcode = *(imgp->proc->p_sysent->sv_szsigcode);
destp = (caddr_t)arginfo - szsigcode - SPARE_USRSPACE -
roundup((ARG_MAX - imgp->stringspace), sizeof(char *));
OpenPOWER on IntegriCloud