summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2004-10-19 12:42:29 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2004-10-19 12:42:29 +0000
commit7ba4dda63ad6b584befcdd1af518f5e8aec0fe2a (patch)
treed1b3a142f5ff481d0b87e93d246e063e1a6ff19c /sys
parentdad2ed0ea2d46300983f4e9cde6008dba2926d1e (diff)
use queue.h provided macro when traversing the process list, no changes
in generated object file. from Joris Vink.
Diffstat (limited to 'sys')
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index 7b234221048..1d608b03b97 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_vnops.c,v 1.32 2004/06/24 19:35:25 tholo Exp $ */
+/* $OpenBSD: procfs_vnops.c,v 1.33 2004/10/19 12:42:28 pedro Exp $ */
/* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */
/*
@@ -1040,7 +1040,7 @@ procfs_readdir(v)
default:
while (pcnt < i) {
pcnt++;
- p = p->p_list.le_next;
+ p = LIST_NEXT(p, p_list);
if (!p)
goto done;
}
@@ -1048,7 +1048,7 @@ procfs_readdir(v)
d.d_namlen = snprintf(d.d_name, sizeof(d.d_name),
"%ld", (long)p->p_pid);
d.d_type = DT_REG;
- p = p->p_list.le_next;
+ p = LIST_NEXT(p, p_list);
break;
}