1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Birdtest: Replace BT_SUCCESS and BT_FAILURE with 1 and 0

This commit is contained in:
Pavel Tvrdik
2016-11-11 17:43:09 +01:00
parent fa71b268a8
commit 5e3cd0e5b5
20 changed files with 100 additions and 104 deletions

View File

@@ -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