summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-12-01 16:40:57 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-12-01 16:40:57 +0000
commita90a45fa8eb82733fb2401aea77fab67471a0d12 (patch)
treeb425689b8aa975af5f06dec9d849e1627cb95b8b /sys/kern/init_main.c
parentafd83459067e8806c325646a976c755c0acd5a2e (diff)
Change 'mountlist' from CIRCLEQ to TAILQ. Be paranoid and
use TAILQ_*_SAFE more than might be needed. Bulk ports build by sthen@ showed nobody sticking their fingers so deep into the kernel. Feedback and suggestions from millert@. ok jsing@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 043edce4de5..2e8cade491a 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.191 2013/10/29 04:23:16 dlg Exp $ */
+/* $OpenBSD: init_main.c,v 1.192 2013/12/01 16:40:56 krw Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -477,10 +477,10 @@ main(void *framep)
if (mountroot == NULL || ((*mountroot)() != 0))
panic("cannot mount root");
- CIRCLEQ_FIRST(&mountlist)->mnt_flag |= MNT_ROOTFS;
+ TAILQ_FIRST(&mountlist)->mnt_flag |= MNT_ROOTFS;
/* Get the vnode for '/'. Set p->p_fd->fd_cdir to reference it. */
- if (VFS_ROOT(CIRCLEQ_FIRST(&mountlist), &rootvnode))
+ if (VFS_ROOT(TAILQ_FIRST(&mountlist), &rootvnode))
panic("cannot find root vnode");
p->p_fd->fd_cdir = rootvnode;
vref(p->p_fd->fd_cdir);