summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2000-04-25 22:41:58 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2000-04-25 22:41:58 +0000
commitb0fb1fac5b2ea0cbadcdf0fe6ab542c92cec30a4 (patch)
tree23a5aab357d12b1a3ab16bbd3f2f313cdcd4d7b1 /sys/kern
parent344ffb50265aea02014237a105b54c6775ee665c (diff)
Use CIRCLEQ_FOREACH
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 4b0c6178cbf..d69364f7d09 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.44 2000/04/21 16:33:12 mickey Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.45 2000/04/25 22:41:57 csapuntz Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -265,8 +265,7 @@ vfs_getvfs(fsid)
register struct mount *mp;
simple_lock(&mountlist_slock);
- for (mp = mountlist.cqh_first; mp != (void *)&mountlist;
- mp = mp->mnt_list.cqe_next) {
+ CIRCLEQ_FOREACH(mp, &mountlist, mnt_list) {
if (mp->mnt_stat.f_fsid.val[0] == fsid->val[0] &&
mp->mnt_stat.f_fsid.val[1] == fsid->val[1]) {
simple_unlock(&mountlist_slock);