summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-11-03 17:16:53 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-11-03 17:16:53 +0000
commit568ebe5b1a0e55e4fcbb93ab20ddfb73098448bb (patch)
treee0654ce2c61cd0e20dc2a541a18a276bcd3ba5db /proc
parentc28a962b837c457e0e7478774ddd528f9ea9df99 (diff)
entered into RCS
Diffstat (limited to 'proc')
-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;