From: Amos Jeffries Date: Sat, 1 Aug 2009 09:48:37 +0000 (+1200) Subject: Enforce Squid-3 code syles X-Git-Tag: SQUID_3_2_0_1~827 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d9019c7302d480b7cf9c91bbcb0cc8ed962ec7a;p=thirdparty%2Fsquid.git Enforce Squid-3 code syles Bracket when mixing assignment and booleans: val = (boolean test) if ((assignment)) if ((val = (boolean test))) --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index a8b3cb72b6..eb54ce1c81 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -625,7 +625,7 @@ configDoConfigure(void) // we enable runtime PURGE checks if there is at least one PURGE method ACL // TODO: replace with a dedicated "purge" ACL option? - Config2.onoff.enable_purge = ACLMethodData::ThePurgeCount > 0; + Config2.onoff.enable_purge = (ACLMethodData::ThePurgeCount > 0); Config2.onoff.mangle_request_headers = httpReqHdrManglersConfigured();