From 36596b93e0b45cb1074b554e57c5f71171350f62 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 8 Jan 2006 04:17:18 +0000 Subject: [PATCH] windows-byte-range-locks-fix-20060107 fix the SERVERLOCKS_ENABLED macro --- src/WINNT/afsd/cm_vnodeops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_vnodeops.c b/src/WINNT/afsd/cm_vnodeops.c index c035c5ce5e..5fdffadf02 100644 --- a/src/WINNT/afsd/cm_vnodeops.c +++ b/src/WINNT/afsd/cm_vnodeops.c @@ -3087,7 +3087,7 @@ long cm_Rename(cm_scache_t *oldDscp, char *oldNamep, cm_scache_t *newDscp, /* unsafe */ #define CONTAINS_RANGE(r1,r2) (((r2).offset+(r2).length) <= ((r1).offset+(r1).length) && (r1).offset <= (r2).offset) -#define SERVERLOCKS_ENABLED(scp) (!(((scp)->flags & CM_SCACHEFLAG_RO) && cm_enableServerLocks)) +#define SERVERLOCKS_ENABLED(scp) (!((scp)->flags & CM_SCACHEFLAG_RO) && cm_enableServerLocks) static void cm_LockRangeSubtract(cm_range_t * pos, const cm_range_t * neg) {