]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix coding ambiguity in store_repl_heap.cc and heap.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 10 Jan 2014 15:46:59 +0000 (16:46 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 10 Jan 2014 15:46:59 +0000 (16:46 +0100)
include/heap.h
src/repl/heap/store_repl_heap.cc

index 1a90f9b284c409b6b2704d209d8f2e30c8a1a17b..d37cc80273a73b9932cf1858382c621e59d8aa52 100644 (file)
@@ -158,7 +158,7 @@ SQUIDCEXTERN int heap_empty(heap *);
 SQUIDCEXTERN int heap_nodes(heap *);
 #else /* MACRO_DEBUG */
 #define        heap_nodes(heap)        ((heap)->last)
-#define        heap_empty(heap)        (((heap)->last <= 0) ? 1 : 0)
+#define        heap_empty(heap)        ((heap)->last <= 0 ? 1 : 0)
 #endif /* MACRO_DEBUG */
 
 /*
index 270f780f1cefc4bf2e0ed5fd8d230ff0eda7c53c..c8feb4a81b89393bca7c009753ef0b18738b2b77 100644 (file)
@@ -221,7 +221,7 @@ heap_purgeNext(RemovalPurgeWalker * walker)
 
 try_again:
 
-    if (!heap_nodes(h->theHeap) > 0)
+    if (heap_empty(h->theHeap))
         return NULL;           /* done */
 
     age = heap_peepminkey(h->theHeap);