X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fprio_heap%2Fprio_heap.c;h=ec5d1f97f6d9fddd1b3ea6b9de20022657f1ba09;hb=f6ccaed94e575af57fe6bf38154771bee4871a2a;hp=8942a113aec50038fe20f59c6bbf84756a2d780d;hpb=92c6a024cd3e81293bd39fd2b322e12ce57ea502;p=babeltrace.git diff --git a/lib/prio_heap/prio_heap.c b/lib/prio_heap/prio_heap.c index 8942a113..ec5d1f97 100644 --- a/lib/prio_heap/prio_heap.c +++ b/lib/prio_heap/prio_heap.c @@ -25,17 +25,12 @@ * SOFTWARE. */ -#include +#include #include +#include #include #include #include -#include - -#ifndef max_t -#define max_t(type, a, b) \ - ((type) (a) > (type) (b) ? (type) (a) : (type) (b)) -#endif #ifdef DEBUG_HEAP void check_heap(const struct ptr_heap *heap) @@ -46,7 +41,7 @@ void check_heap(const struct ptr_heap *heap) return; for (i = 1; i < heap->len; i++) - assert(!heap->gt(heap->ptrs[i], heap->ptrs[0])); + BT_ASSERT(!heap->gt(heap->ptrs[i], heap->ptrs[0])); } #endif