summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2009-07-09 22:29:55 +0000
committerthib <thib@openbsd.org>2009-07-09 22:29:55 +0000
commit627b2c48b045094e47a896259c934afaea2b736d (patch)
treef5457c2a59620f592424c9e0855e1bb5eb4a726c /sys/kern/init_main.c
parentregen (diff)
downloadwireguard-openbsd-627b2c48b045094e47a896259c934afaea2b736d.tar.xz
wireguard-openbsd-627b2c48b045094e47a896259c934afaea2b736d.zip
Remove the VREF() macro and replaces all instances with a call to verf(),
which is exactly what the macro does. Macro's that are nothing more then: #define FUNCTION(arg) function(arg) are almost always pointless and should go away. OK blambert@ Agreed by many.
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 ba5887bdc6f..c3aaf9858d3 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.159 2009/04/19 17:53:38 deraadt Exp $ */
+/* $OpenBSD: init_main.c,v 1.160 2009/07/09 22:29:56 thib Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -463,7 +463,7 @@ main(void *framep)
if (VFS_ROOT(CIRCLEQ_FIRST(&mountlist), &rootvnode))
panic("cannot find root vnode");
p->p_fd->fd_cdir = rootvnode;
- VREF(p->p_fd->fd_cdir);
+ vref(p->p_fd->fd_cdir);
VOP_UNLOCK(rootvnode, 0, p);
p->p_fd->fd_rdir = NULL;
@@ -473,7 +473,7 @@ main(void *framep)
* share proc0's CWD info.
*/
initproc->p_fd->fd_cdir = rootvnode;
- VREF(initproc->p_fd->fd_cdir);
+ vref(initproc->p_fd->fd_cdir);
initproc->p_fd->fd_rdir = NULL;
/*