diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-07-05 23:41:49 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-07-06 09:59:06 -0700 |
commit | d72b7f9e66c579441b8e6f6fc28cc10524b7e9ce (patch) | |
tree | fead75d84be77daff15a57271da50020e1eff4c0 /include/xor_codes | |
parent | 7f7687dc78ad789e1ed3892e9cff199a9c63d874 (diff) | |
download | liberasurecode-d72b7f9e66c579441b8e6f6fc28cc10524b7e9ce.tar.gz |
xor_codes: Don't call exit() from shared library
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'include/xor_codes')
-rw-r--r-- | include/xor_codes/xor_code.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xor_codes/xor_code.h b/include/xor_codes/xor_code.h index 8c251fd..912dcde 100644 --- a/include/xor_codes/xor_code.h +++ b/include/xor_codes/xor_code.h @@ -56,7 +56,7 @@ typedef struct xor_code_s int hd; int *parity_bms; int *data_bms; - void (*decode)(struct xor_code_s *code_desc, char **data, char **parity, int *missing_idxs, int blocksize, int decode_parity); + int (*decode)(struct xor_code_s *code_desc, char **data, char **parity, int *missing_idxs, int blocksize, int decode_parity); void (*encode)(struct xor_code_s *code_desc, char **data, char **parity, int blocksize); int (*fragments_needed)(struct xor_code_s *code_desc, int *missing_idxs, int *fragments_needed); } xor_code_t; |