]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Oops. My cleanup of pointer aritmetic in memCompChunks inadvertly
authorhno <>
Mon, 8 Apr 2002 14:19:05 +0000 (14:19 +0000)
committerhno <>
Mon, 8 Apr 2002 14:19:05 +0000 (14:19 +0000)
compared the wrong pointers.. Must have been tired.

Thanks to Andree for noticing quickly

lib/MemPool.c

index 6af80359a4a176d1c105c6d958145619e20b0b80..ae384babcb7d8505cc38716b5c7c767ad9107091 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: MemPool.c,v 1.8 2002/04/06 15:06:13 hno Exp $
+ * $Id: MemPool.c,v 1.9 2002/04/08 08:19:05 hno Exp $
  *
  * DEBUG: section 63    Low Level Memory Pool Management
  * AUTHOR: Alex Rousskov, Andres Kroonmaa
@@ -184,9 +184,9 @@ memPoolSetIdleLimit(size_t new_idle_limit)
 static int
 memCompChunks(MemChunk * chunkA, MemChunk * chunkB)
 {
-    if (chunkA > chunkB)
+    if (chunkA->objCache > chunkB->objCache)
        return 1;
-    else if (chunkA < chunkB)
+    else if (chunkA->objCache < chunkB->objCache)
        return -1;
     else
        return 0;