From e323d08f6ac7c2bf62dd5db4849ad3e52afd4a13 Mon Sep 17 00:00:00 2001 From: Antoine Verheijen Date: Sun, 7 Mar 2010 14:50:06 -0500 Subject: [PATCH] OpenBSD: eliminate use of VREF() macro 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 Tested-by: Derrick Brashear (cherry picked from commit a31bbd3123dd7bd5c0f73c1bcd89548d489930a8) Change-Id: I442d5e9cfa9bd7f5886692c0afcbb3d220d0ca5b Reviewed-on: http://gerrit.openafs.org/1509 --- src/afs/OBSD/osi_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/OBSD/osi_vfsops.c b/src/afs/OBSD/osi_vfsops.c index b248c68fc..b56c8941d 100644 --- a/src/afs/OBSD/osi_vfsops.c +++ b/src/afs/OBSD/osi_vfsops.c @@ -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; -- 2.39.5