X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fprio_heap%2Fprio_heap.c;h=e6e4711362796cca96639dcb6dc327c1128a845f;hb=7e69c04f557e46fb50e5a888a3bc3451afbd3b8e;hp=cd7098ff045bf09256297d341cb1a1d027dcff1c;hpb=3d9990ac8bcbb870300869ed217b80151b52bf4e;p=babeltrace.git diff --git a/lib/prio_heap/prio_heap.c b/lib/prio_heap/prio_heap.c index cd7098ff..e6e47113 100644 --- a/lib/prio_heap/prio_heap.c +++ b/lib/prio_heap/prio_heap.c @@ -1,6 +1,4 @@ /* - * prio_heap.c - * * Static-sized priority heap containing pointers. Based on CLRS, * chapter 6. * @@ -27,10 +25,10 @@ #include #include +#include #include #include #include -#include #ifdef DEBUG_HEAP void check_heap(const struct ptr_heap *heap) @@ -41,7 +39,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