summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-12-31 10:24:19 +0000
committerphk <phk@FreeBSD.org>2000-12-31 10:24:19 +0000
commit5de479435ac7f4124fce758194096f1de151aea4 (patch)
tree813f80c517df66e8f82e6918c023a148c604421e /sys/fs/procfs
parentbd55e14c5922b012035bc431a015ea47974d76b7 (diff)
downloadFreeBSD-src-5de479435ac7f4124fce758194096f1de151aea4.zip
FreeBSD-src-5de479435ac7f4124fce758194096f1de151aea4.tar.gz
Use macro API to <sys/queue.h>
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_vnops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c
index 05ad13a..27e3707 100644
--- a/sys/fs/procfs/procfs_vnops.c
+++ b/sys/fs/procfs/procfs_vnops.c
@@ -823,7 +823,7 @@ procfs_readdir(ap)
struct proc *p;
ALLPROC_LOCK(AP_SHARED);
- p = allproc.lh_first;
+ p = LIST_FIRST(&allproc);
for (; p && uio->uio_resid >= delen; i++, pcnt++) {
bzero((char *) dp, delen);
dp->d_reclen = delen;
@@ -847,7 +847,7 @@ procfs_readdir(ap)
default:
while (pcnt < i) {
- p = p->p_list.le_next;
+ p = LIST_NEXT(p, p_list);
if (!p)
goto done;
if (p_can(curproc, p, P_CAN_SEE, NULL))
@@ -855,7 +855,7 @@ procfs_readdir(ap)
pcnt++;
}
while (p_can(curproc, p, P_CAN_SEE, NULL)) {
- p = p->p_list.le_next;
+ p = LIST_NEXT(p, p_list);
if (!p)
goto done;
}
@@ -863,7 +863,7 @@ procfs_readdir(ap)
dp->d_namlen = sprintf(dp->d_name, "%ld",
(long)p->p_pid);
dp->d_type = DT_DIR;
- p = p->p_list.le_next;
+ p = LIST_NEXT(p, p_list);
break;
}
OpenPOWER on IntegriCloud