From 110f57f415cc53bc1a8bb77c74d0040678a2cfb5 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Mon, 23 Apr 2007 12:11:55 +0000 Subject: [PATCH] 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)". --- src/DelayPool.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.47.2