summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.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/kern_fork.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/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index b2947bd4421..117d6b7962e 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.103 2009/04/14 09:13:25 art Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.104 2009/07/09 22:29:56 thib Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -286,7 +286,7 @@ fork1(struct proc *p1, int exitsig, int flags, void *stack, size_t stacksize,
/* bump references to the text vnode (for procfs) */
p2->p_textvp = p1->p_textvp;
if (p2->p_textvp)
- VREF(p2->p_textvp);
+ vref(p2->p_textvp);
if (flags & FORK_CLEANFILES)
p2->p_fd = fdinit(p1);
@@ -332,7 +332,7 @@ fork1(struct proc *p1, int exitsig, int flags, void *stack, size_t stacksize,
if (p1->p_traceflag & KTRFAC_INHERIT) {
p2->p_traceflag = p1->p_traceflag;
if ((p2->p_tracep = p1->p_tracep) != NULL)
- VREF(p2->p_tracep);
+ vref(p2->p_tracep);
}
#endif