diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-07-09 22:29:57 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-07-09 22:29:57 +0000 |
commit | 2b856d134632dfdeff9ea4e7dca4d8958fb0f0bb (patch) | |
tree | 12fb7faf3468b0bb2d1712f8f88a6b5318059de6 /sys/dev | |
parent | 90f3568623813a10b6ae7548eaf13da8a5e5923c (diff) |
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')
-rw-r--r-- | sys/dev/systrace.c | 6 |
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); } |