Catch up to the new kinfo_proc.

This commit is contained in:
John Baldwin 2000-12-12 23:31:44 +00:00
parent 65e26c5e18
commit 93480bce7c

View File

@ -283,11 +283,11 @@ main(int ac, char **av)
printf("nprocs %d\n", nprocs);
for (i = 0; i < nprocs; i++) {
thispid = procs[i].kp_proc.p_pid;
strncpy(thiscmd, procs[i].kp_proc.p_comm, MAXCOMLEN);
thispid = procs[i].ki_pid;
strncpy(thiscmd, procs[i].ki_comm, MAXCOMLEN);
thiscmd[MAXCOMLEN] = '\0';
thistdev = procs[i].kp_eproc.e_tdev;
thisuid = procs[i].kp_eproc.e_pcred.p_ruid; /* real uid */
thistdev = procs[i].ki_tdev;
thisuid = procs[i].ki_ruid; /* real uid */
matched = 1;
if (user) {