diff options
author | Mark Storer <Mark.Storer@evault.com> | 2014-08-15 16:50:14 -0700 |
---|---|---|
committer | Mark Storer <Mark.Storer@evault.com> | 2014-08-15 16:50:14 -0700 |
commit | 4cfd3f535b95dd7e6599267ab9bf007c8e464ae0 (patch) | |
tree | 69557f0f87bb8210f7b60989ddae225f817c27ce /test | |
parent | c22312f2d00ae56db499ae142656692a8750e3c9 (diff) | |
download | liberasurecode-4cfd3f535b95dd7e6599267ab9bf007c8e464ae0.tar.gz |
Updated liberasurecode_supported_checksum_types to accept a pointer
argument that holds the length of the list returned (i.e. the number of
supported checksum types).
Diffstat (limited to 'test')
-rw-r--r-- | test/liberasurecode_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/liberasurecode_test.c b/test/liberasurecode_test.c index c0695ce..cfa24bf 100644 --- a/test/liberasurecode_test.c +++ b/test/liberasurecode_test.c @@ -116,9 +116,11 @@ static void test_liberasurecode_supported_backends() static void test_liberasurecode_supported_checksum_types() { int i; + int num_checksum_types; const char **supported_checksum_types = - liberasurecode_supported_checksum_types(); + liberasurecode_supported_checksum_types(&num_checksum_types); + assert(num_checksum_types == CHKSUM_TYPES_MAX); for (i = 0; i < CHKSUM_TYPES_MAX; i++) printf("%s\n", supported_checksum_types[i]); } |