]> 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:59:53 +0000 (11:59 -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>
(cherry picked from commit a31bbd3123dd7bd5c0f73c1bcd89548d489930a8)
Change-Id: I442d5e9cfa9bd7f5886692c0afcbb3d220d0ca5b
Reviewed-on: http://gerrit.openafs.org/1509

src/afs/OBSD/osi_vfsops.c

index b248c68fc2b69f93b265e49dc7d53e9490c5f6f1..b56c8941dfe62a67be521ec5cdc79203dc954c48 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;