summaryrefslogtreecommitdiff
path: root/ubi-utils/src/nandecc.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/nandecc.h')
-rw-r--r--ubi-utils/src/nandecc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ubi-utils/src/nandecc.h b/ubi-utils/src/nandecc.h
index fb5d529..bcf1982 100644
--- a/ubi-utils/src/nandecc.h
+++ b/ubi-utils/src/nandecc.h
@@ -22,7 +22,8 @@
#include <stdint.h>
-extern int nand_calculate_ecc(const uint8_t *dat, uint8_t *ecc_code);
-extern int nand_correct_data(uint8_t *dat, const uint8_t *fail_ecc);
+int nand_calculate_ecc(const uint8_t *dat, uint8_t *ecc_code);
+int nand_correct_data(uint8_t *dat, const uint8_t *read_ecc,
+ const uint8_t *calc_ecc);
#endif