OpenBSD: eliminate use of VREF() macro
authorAntoine Verheijen <antoine@ualberta.ca>
Sun, 7 Mar 2010 19:50:06 +0000 (14:50 -0500)
committerDerrick Brashear <shadow@dementia.org>
Sun, 7 Mar 2010 19:51:34 +0000 (11:51 -0800)
OpenBSD 4.7 (currently in beta) removes the (dummy) VREF() macro from the
system header files. For at least as far back as OpenBSD 3.6, all this
macro does is expand to a call to a system routine by the same name in
lower case. This patch therefore replaces the single OpenBSD use of
VREF() with a direct call to the routine to which it expanded.

Change-Id: I44888ed1ba7ba8e7150202798def10bed2ab3158
Reviewed-on: http://gerrit.openafs.org/1532
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afs/OBSD/osi_vfsops.c

index 69a5580..7a42b07 100644 (file)
@@ -347,7 +347,7 @@ afs_root(struct mount *mp, struct vnode **vpp)
                    AFS_RELE(AFSTOV(afs_globalVp));
 #endif
                afs_globalVp = tvp;
-               VREF(AFSTOV(afs_globalVp));
+               vref(AFSTOV(afs_globalVp));
            }
            AFSTOV(tvp)->v_flag |= VROOT;
            afs_globalVFS = mp;