Use enum value when handling shss

This commit is contained in:
Kota Tsuyuzaki 2015-03-09 13:08:17 +09:00 committed by Tushar Gohad
parent 0e535da2a7
commit d57a686df9
2 changed files with 2 additions and 2 deletions

View File

@ -562,7 +562,7 @@ int liberasurecode_decode(int desc,
goto out;
}
if (instance->common.id != 5) {
if (instance->common.id != EC_BACKEND_SHSS) {
/* shss (ntt_backend) must force to decode */
// TODO: Add a frag and function to handle whether the backend want to decode or not.
/*

View File

@ -643,7 +643,7 @@ static void encode_decode_test_impl(const ec_backend_id_t be_id,
char *data_ptr = frag + frag_header_size;
int cmp_size = remaining >= metadata.size ? metadata.size : remaining;
// shss doesn't keep original data on data fragments
if (be_id != 5) {
if (be_id != EC_BACKEND_SHSS) {
assert(memcmp(data_ptr, orig_data_ptr, cmp_size) == 0);
}
remaining -= cmp_size;