summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs/procfs_subr.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-03-05 21:48:54 +0000
committermiod <miod@openbsd.org>2006-03-05 21:48:54 +0000
commit1573508e4a2b79545b4e249a73d6b17aac49719c (patch)
tree71ace380f161b052a5a1ed8e427236a217c5ad15 /sys/miscfs/procfs/procfs_subr.c
parentSprinkle some tabs and a little cleaning. (diff)
downloadwireguard-openbsd-1573508e4a2b79545b4e249a73d6b17aac49719c.tar.xz
wireguard-openbsd-1573508e4a2b79545b4e249a73d6b17aac49719c.zip
Use more queue macros rather than doing it by hand; ok otto@ krw@
Diffstat (limited to 'sys/miscfs/procfs/procfs_subr.c')
-rw-r--r--sys/miscfs/procfs/procfs_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c
index ac8a5769c01..7343fc7fb38 100644
--- a/sys/miscfs/procfs/procfs_subr.c
+++ b/sys/miscfs/procfs/procfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_subr.c,v 1.24 2005/12/11 21:30:31 miod Exp $ */
+/* $OpenBSD: procfs_subr.c,v 1.25 2006/03/05 21:48:56 miod Exp $ */
/* $NetBSD: procfs_subr.c,v 1.15 1996/02/12 15:01:42 christos Exp $ */
/*
@@ -107,7 +107,7 @@ procfs_allocvp(mp, vpp, pid, pfs_type)
if (error)
return (error);
loop:
- for (pfs = pfshead.tqh_first; pfs != NULL; pfs = pfs->list.tqe_next) {
+ TAILQ_FOREACH(pfs, &pfshead, list) {
vp = PFSTOV(pfs);
if (pfs->pfs_pid == pid &&
pfs->pfs_type == pfs_type &&