summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc/info.c4
-rw-r--r--proc/mgt.c2
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;
}
diff --git a/proc/mgt.c b/proc/mgt.c
index 6ee374e2..9a3cec19 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -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;