From 7ba4dda63ad6b584befcdd1af518f5e8aec0fe2a Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Tue, 19 Oct 2004 12:42:29 +0000 Subject: use queue.h provided macro when traversing the process list, no changes in generated object file. from Joris Vink. --- sys/miscfs/procfs/procfs_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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; } -- cgit v1.2.3