diff options
author | 2009-07-09 22:29:55 +0000 | |
---|---|---|
committer | 2009-07-09 22:29:55 +0000 | |
commit | 627b2c48b045094e47a896259c934afaea2b736d (patch) | |
tree | f5457c2a59620f592424c9e0855e1bb5eb4a726c /sys/kern/kern_exec.c | |
parent | regen (diff) | |
download | wireguard-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_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 5678bab6590..4647db66fac 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.109 2009/01/04 00:28:42 thib Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.110 2009/07/09 22:29:56 thib Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -464,7 +464,7 @@ sys_execve(struct proc *p, void *v, register_t *retval) /* record proc's vnode, for use by procfs and others */ if (p->p_textvp) vrele(p->p_textvp); - VREF(pack.ep_vp); + vref(pack.ep_vp); p->p_textvp = pack.ep_vp; atomic_setbits_int(&p->p_flag, P_EXEC); |