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/kern/kern_exec.c | |
| parent | 2caecceeb5f2099e400de3515a0e28ee619c9b0f (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
| -rw-r--r-- | sys/kern/kern_exec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 84d4d46fe388..e3a3b710ea92 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 *)); |
