From: Marc Dionne Date: Tue, 22 Jun 2010 21:37:15 +0000 (-0400) Subject: Fix CHush test X-Git-Tag: openafs-devel-1_5_75~96 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=6ed90d5c2d8ebce40aa9d623d9875b0aecf4d986 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 --- diff --git a/src/afs/afs_cell.c b/src/afs/afs_cell.c index 89d385d..19488a3 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;