diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-11-03 17:16:53 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-11-03 17:16:53 +0000 |
commit | 568ebe5b1a0e55e4fcbb93ab20ddfb73098448bb (patch) | |
tree | e0654ce2c61cd0e20dc2a541a18a276bcd3ba5db | |
parent | c28a962b837c457e0e7478774ddd528f9ea9df99 (diff) |
entered into RCS
-rw-r--r-- | proc/info.c | 4 | ||||
-rw-r--r-- | proc/mgt.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/proc/info.c b/proc/info.c index 6761314c..4f33a68c 100644 --- a/proc/info.c +++ b/proc/info.c @@ -334,7 +334,7 @@ S_proc_getprocinfo (struct proc *callerp, if (structsize / sizeof (int) > *piarraylen) { - vm_allocate (mach_task_self (), (u_int *)&piarray, structsize, 1); + vm_allocate (mach_task_self (), (u_int *)piarray, structsize, 1); didalloc = 1; } *piarraylen = structsize / sizeof (int); @@ -414,7 +414,7 @@ S_proc_getprocinfo (struct proc *callerp, vm_deallocate (mach_task_self (), (u_int )thds, nthreads * sizeof (thread_t)); if (err && didalloc) - vm_deallocate (mach_task_self (), (u_int) piarray, structsize); + vm_deallocate (mach_task_self (), (u_int) *piarray, structsize); return err; } @@ -418,7 +418,7 @@ S_proc_getallpids (struct proc *p, prociterate (count_up, &nprocs); if (nprocs > *pidslen) - vm_allocate (mach_task_self (), (vm_address_t *) *pids, + vm_allocate (mach_task_self (), (vm_address_t *) pids, nprocs * sizeof (pid_t), 1); loc = *pids; |