From 6ed90d5c2d8ebce40aa9d623d9875b0aecf4d986 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Tue, 22 Jun 2010 17:37:15 -0400 Subject: [PATCH] Fix CHush test The compiler flagged this with a warning, and depending on the flags that are set, the test may not give the expected result. Use parentheses to get the intended precedence. Change-Id: If0311aae70d6e71b69e247e5b66e0dd558c2c958 Reviewed-on: http://gerrit.openafs.org/2232 Reviewed-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_cell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_cell.c b/src/afs/afs_cell.c index 89d385d87..19488a3e5 100644 --- a/src/afs/afs_cell.c +++ b/src/afs/afs_cell.c @@ -1005,7 +1005,7 @@ afs_NewCell(char *acellName, afs_int32 * acellHosts, int aflags, ReleaseWriteLock(&tc->lock); ReleaseWriteLock(&afs_xcell); afs_PutCell(tc, 0); - if (!aflags & CHush) + if (!(aflags & CHush)) afs_DynrootInvalidate(); return 0; -- 2.39.5