]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Enforce Squid-3 code syles
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Aug 2009 09:48:37 +0000 (21:48 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Aug 2009 09:48:37 +0000 (21:48 +1200)
Bracket when mixing assignment and booleans:
  val = (boolean test)
  if ((assignment))
  if ((val = (boolean test)))

src/cache_cf.cc

index a8b3cb72b6fcbe1cb70d722ab42f65eed7275ed0..eb54ce1c81ee65134dc3a98ae4d5f1b510fb4919 100644 (file)
@@ -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();