summaryrefslogtreecommitdiff
path: root/lib/fletcher16_test.c
diff options
context:
space:
mode:
authorPavel Tvrdik <pawel.tvrdik@gmail.com>2016-11-11 17:43:09 +0100
committerPavel Tvrdik <pawel.tvrdik@gmail.com>2016-11-11 17:43:09 +0100
commit5e3cd0e5b56e6c58cfba4d0d38fbbbed3657889d (patch)
tree3e96b946c06176731b1d2ba27605dc257ef9c7bc /lib/fletcher16_test.c
parentfa71b268a8d15d579f50d7f4f92e2edb3b431e05 (diff)
Birdtest: Replace BT_SUCCESS and BT_FAILURE with 1 and 0
Diffstat (limited to 'lib/fletcher16_test.c')
-rw-r--r--lib/fletcher16_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fletcher16_test.c b/lib/fletcher16_test.c
index 3e036900..1020e6ec 100644
--- a/lib/fletcher16_test.c
+++ b/lib/fletcher16_test.c
@@ -55,7 +55,7 @@ test_fletcher16(void *out_, const void *in_, const void *expected_out_)
fletcher16_update(&ctxt, in, strlen(in));
put_u16(out, fletcher16_compute(&ctxt));
- return (*out == *expected_out) ? BT_SUCCESS : BT_FAILURE;
+ return *out == *expected_out;
}
static int
@@ -72,7 +72,7 @@ test_fletcher16_checksum(void *out_, const void *in_, const void *expected_out_)
fletcher16_update(&ctxt, in, len);
put_u16(out, fletcher16_final(&ctxt, len, len));
- return (*out == *expected_out) ? BT_SUCCESS : BT_FAILURE;
+ return *out == *expected_out;
}
static int