]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Tsantilas Christos <chtsanti@users.sourceforge.net>
authorwessels <>
Mon, 23 Apr 2007 12:11:55 +0000 (12:11 +0000)
committerwessels <>
Mon, 23 Apr 2007 12:11:55 +0000 (12:11 +0000)
Fix compile-time issue related to removing getRaw() uses.

Tsantilas says Squid won't compile with delay pools enabled after
I removed getRaw() here.  It seems to compile okay on FreeBSD (gcc
3.4.2), but it is certainly better to write "if (X == NULL)" rather
than "if (!X != NULL)".

src/DelayPool.cc

index 4dc8ed73c884f63440b896c9d43b7112fef88a45..d8e837d792d13963e9aa83a258bb373419b24623 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: DelayPool.cc,v 1.6 2007/04/20 22:24:07 wessels Exp $
+ * $Id: DelayPool.cc,v 1.7 2007/04/23 06:11:55 wessels Exp $
  *
  * DEBUG: section 77    Delay Pools
  * AUTHOR: Robert Collins <robertc@squid-cache.org>
@@ -69,7 +69,7 @@ DelayPool::parse()
 void
 DelayPool::dump (StoreEntry *entry, unsigned int i) const
 {
-    if (!theComposite() != NULL)
+    if (theComposite() == NULL)
         return;
 
     storeAppendPrintf(entry, "delay_class %d %s\n", i + 1, pool->theClassTypeLabel());