summaryrefslogtreecommitdiff
path: root/sys/msdosfs
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2009-07-09 22:29:57 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2009-07-09 22:29:57 +0000
commit2b856d134632dfdeff9ea4e7dca4d8958fb0f0bb (patch)
tree12fb7faf3468b0bb2d1712f8f88a6b5318059de6 /sys/msdosfs
parent90f3568623813a10b6ae7548eaf13da8a5e5923c (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/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_denode.c6
-rw-r--r--sys/msdosfs/msdosfs_lookup.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c
index 98fe26de870..634a1d09b7f 100644
--- a/sys/msdosfs/msdosfs_denode.c
+++ b/sys/msdosfs/msdosfs_denode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_denode.c,v 1.35 2008/01/13 21:27:09 krw Exp $ */
+/* $OpenBSD: msdosfs_denode.c,v 1.36 2009/07/09 22:29:56 thib Exp $ */
/* $NetBSD: msdosfs_denode.c,v 1.23 1997/10/17 11:23:58 ws Exp $ */
/*-
@@ -219,7 +219,7 @@ retry:
* Directory entry was not in cache, have to create a vnode and
* copy it from the passed disk buffer.
*/
- /* getnewvnode() does a VREF() on the vnode */
+ /* getnewvnode() does a vref() on the vnode */
error = getnewvnode(VT_MSDOSFS, pmp->pm_mountp,
msdosfs_vnodeop_p, &nvp);
if (error) {
@@ -329,7 +329,7 @@ retry:
}
} else
nvp->v_type = VREG;
- VREF(ldep->de_devvp);
+ vref(ldep->de_devvp);
*depp = ldep;
return (0);
}
diff --git a/sys/msdosfs/msdosfs_lookup.c b/sys/msdosfs/msdosfs_lookup.c
index a1fa8ce5f56..b74c9717515 100644
--- a/sys/msdosfs/msdosfs_lookup.c
+++ b/sys/msdosfs/msdosfs_lookup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_lookup.c,v 1.20 2007/11/27 16:22:13 martynas Exp $ */
+/* $OpenBSD: msdosfs_lookup.c,v 1.21 2009/07/09 22:29:56 thib Exp $ */
/* $NetBSD: msdosfs_lookup.c,v 1.34 1997/10/18 22:12:27 ws Exp $ */
/*-
@@ -482,7 +482,7 @@ foundroot:;
* Save directory inode pointer in ndp->ni_dvp for dirremove().
*/
if (dp->de_StartCluster == scn && isadir) { /* "." */
- VREF(vdp);
+ vref(vdp);
*vpp = vdp;
return (0);
}
@@ -565,7 +565,7 @@ foundroot:;
}
*vpp = DETOV(tdp);
} else if (dp->de_StartCluster == scn && isadir) {
- VREF(vdp); /* we want ourself, ie "." */
+ vref(vdp); /* we want ourself, ie "." */
*vpp = vdp;
} else {
if ((error = deget(pmp, cluster, blkoff, &tdp)) != 0)