From: Francesco Chemolli Date: Fri, 10 Jan 2014 15:46:59 +0000 (+0100) Subject: Fix coding ambiguity in store_repl_heap.cc and heap.h X-Git-Tag: SQUID_3_5_0_1~424 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=349085dd54f668cd7a9ede687e6ea50dfa1e6752;p=thirdparty%2Fsquid.git Fix coding ambiguity in store_repl_heap.cc and heap.h --- diff --git a/include/heap.h b/include/heap.h index 1a90f9b284..d37cc80273 100644 --- a/include/heap.h +++ b/include/heap.h @@ -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 */ /* diff --git a/src/repl/heap/store_repl_heap.cc b/src/repl/heap/store_repl_heap.cc index 270f780f1c..c8feb4a81b 100644 --- a/src/repl/heap/store_repl_heap.cc +++ b/src/repl/heap/store_repl_heap.cc @@ -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);