aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>1996-03-11 06:13:09 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>1996-03-11 06:13:09 +0000
commit5a18c60a634108e5f64646250b06bd917633d876 (patch)
tree6706387aa1bcdc7da4da100a8c71935953592a70 /sys/fs
parent1b67ec6de98bf12f0651066967dbb4d49f9216fa (diff)
downloadsrc-5a18c60a634108e5f64646250b06bd917633d876.tar.gz
src-5a18c60a634108e5f64646250b06bd917633d876.zip
Notes
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/procfs/procfs_vnops.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c
index df579323dfd5..1ad1d2d00fce 100644
--- a/sys/fs/procfs/procfs_vnops.c
+++ b/sys/fs/procfs/procfs_vnops.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_vnops.c 8.6 (Berkeley) 2/7/94
*
- * $Id: procfs_vnops.c,v 1.19 1995/11/16 11:39:11 bde Exp $
+ * $Id: procfs_vnops.c,v 1.20 1996/01/24 18:41:41 peter Exp $
*/
/*
@@ -737,9 +737,7 @@ procfs_readdir(ap)
#ifdef PROCFS_ZOMBIE
int doingzomb = 0;
#endif
- volatile struct proc *p;
-
- p = allproc;
+ volatile struct proc *p = allproc.lh_first;
#define PROCFS_XFILES 3 /* number of other entries, like "curproc" */
pcnt = PROCFS_XFILES;
@@ -772,12 +770,12 @@ procfs_readdir(ap)
dp->d_namlen = sprintf(dp->d_name, "%ld", (long) p->p_pid);
}
- p = p->p_next;
+ p = p->p_list.le_next;
#ifdef PROCFS_ZOMBIE
if (p == 0 && doingzomb == 0) {
doingzomb = 1;
- p = zombproc;
+ p = zombproc.lh_first;
}
#endif