Tests: Add a helper for the all_zero checker

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2016-02-23 19:26:15 -08:00
parent b4320bd76c
commit 8a44851128
8 changed files with 25 additions and 30 deletions

View File

@@ -127,7 +127,7 @@ static const unsigned char zeroBlock[4096];
/**
* Returns 1 if and only if buf[0..size-1] is zero.
*/
int all_zeroes(const unsigned char *buf, unsigned size)
int all_zero(const unsigned char *buf, unsigned size)
{
unsigned j, e;