]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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 69a55800be10c0f286e80af58062cd8c07ed265c..7a42b073fad07765ba6febef2339f16a9531fe26 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;