summaryrefslogtreecommitdiffstats
path: root/sys/dev/systrace.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/dev/systrace.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/dev/systrace.c')
-rw-r--r--sys/dev/systrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c
index ac2983a2303..2ad38420036 100644
--- a/sys/dev/systrace.c
+++ b/sys/dev/systrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.c,v 1.49 2008/11/09 05:13:53 deraadt Exp $ */
+/* $OpenBSD: systrace.c,v 1.50 2009/07/09 22:29:55 thib Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -1186,9 +1186,9 @@ systrace_getcwd(struct fsystrace *fst, struct str_process *strp)
fst->fd_rdir = myfdp->fd_rdir;
if ((myfdp->fd_cdir = fdp->fd_cdir) != NULL)
- VREF(myfdp->fd_cdir);
+ vref(myfdp->fd_cdir);
if ((myfdp->fd_rdir = fdp->fd_rdir) != NULL)
- VREF(myfdp->fd_rdir);
+ vref(myfdp->fd_rdir);
return (0);
}