diff options
| author | 2004-12-26 21:22:11 +0000 | |
|---|---|---|
| committer | 2004-12-26 21:22:11 +0000 | |
| commit | 9d08f8e56428da94db79b31da31f4e37cb4022b7 (patch) | |
| tree | 85404d1033f1e95cb08994035802c1e568059230 /sys/kern/init_main.c | |
| parent | Remove duplicate definition of LONG_DOUBLE_TYPE_SIZE, and shrink WINT_TYPE (diff) | |
| download | wireguard-openbsd-9d08f8e56428da94db79b31da31f4e37cb4022b7.tar.xz wireguard-openbsd-9d08f8e56428da94db79b31da31f4e37cb4022b7.zip | |
Use list and queue macros where applicable to make the code easier to read;
no change in compiler assembly output.
Diffstat (limited to 'sys/kern/init_main.c')
| -rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 7b13c6c32c0..3d2f5de24a1 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.121 2004/11/28 02:11:33 deraadt Exp $ */ +/* $OpenBSD: init_main.c,v 1.122 2004/12/26 21:22:13 miod Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -439,7 +439,7 @@ main(framep) CIRCLEQ_FIRST(&mountlist)->mnt_flag |= MNT_ROOTFS; /* Get the vnode for '/'. Set p->p_fd->fd_cdir to reference it. */ - if (VFS_ROOT(mountlist.cqh_first, &rootvnode)) + if (VFS_ROOT(CIRCLEQ_FIRST(&mountlist), &rootvnode)) panic("cannot find root vnode"); p->p_fd->fd_cdir = rootvnode; VREF(p->p_fd->fd_cdir); |
