diff options
Diffstat (limited to 'lib/fletcher16_test.c')
-rw-r--r-- | lib/fletcher16_test.c | 4 |
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 |