From 5e3cd0e5b56e6c58cfba4d0d38fbbbed3657889d Mon Sep 17 00:00:00 2001 From: Pavel Tvrdik Date: Fri, 11 Nov 2016 17:43:09 +0100 Subject: Birdtest: Replace BT_SUCCESS and BT_FAILURE with 1 and 0 --- lib/heap_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/heap_test.c') diff --git a/lib/heap_test.c b/lib/heap_test.c index 40c9dd83..c04a0450 100644 --- a/lib/heap_test.c +++ b/lib/heap_test.c @@ -82,7 +82,7 @@ t_heap_insert(void) bt_assert(is_heap_valid(heap, num)); } - return BT_SUCCESS; + return 1; } static int @@ -110,7 +110,7 @@ t_heap_increase_decrease(void) bt_assert(is_heap_valid(heap, num)); } - return BT_SUCCESS; + return 1; } static int @@ -128,7 +128,7 @@ t_heap_delete(void) bt_assert(is_heap_valid(heap, num)); } - return BT_SUCCESS; + return 1; } static int @@ -139,7 +139,7 @@ t_heap_0(void) t_heap_increase_decrease(); t_heap_delete(); - return (heap[0] == SPECIAL_KEY) ? BT_SUCCESS : BT_FAILURE; + return heap[0] == SPECIAL_KEY; } static int @@ -168,7 +168,7 @@ t_heap_insert_random(void) bt_abort_msg("Did not find a number %d in heap.", expected[i]); } - return BT_SUCCESS; + return 1; } int -- cgit v1.2.3