From: wessels <> Date: Mon, 23 Apr 2007 12:11:55 +0000 (+0000) Subject: Author: Tsantilas Christos X-Git-Tag: SQUID_3_0_PRE6~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=110f57f415cc53bc1a8bb77c74d0040678a2cfb5;p=thirdparty%2Fsquid.git Author: Tsantilas Christos 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)". --- diff --git a/src/DelayPool.cc b/src/DelayPool.cc index 4dc8ed73c8..d8e837d792 100644 --- a/src/DelayPool.cc +++ b/src/DelayPool.cc @@ -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 @@ -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());