diff options
author | Wolfgang Denk <wd@denx.de> | 2008-04-25 11:52:21 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-25 11:52:21 +0200 |
commit | 03ccdbcd5602610cea4bd0db7e48e1ef881a51ef (patch) | |
tree | 11ad2f560407bf50fd9826b7c083331e907703b0 /lib_generic | |
parent | eb0615bf600d2caf5aa2958f47f5ba364c52d5e7 (diff) | |
download | u-boot-imx-03ccdbcd5602610cea4bd0db7e48e1ef881a51ef.zip u-boot-imx-03ccdbcd5602610cea4bd0db7e48e1ef881a51ef.tar.gz u-boot-imx-03ccdbcd5602610cea4bd0db7e48e1ef881a51ef.tar.bz2 |
lib_generic/crc32.c: fix compile problem
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'lib_generic')
-rw-r--r-- | lib_generic/crc32.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib_generic/crc32.c b/lib_generic/crc32.c index 58cd22e..32e72f9 100644 --- a/lib_generic/crc32.c +++ b/lib_generic/crc32.c @@ -151,10 +151,7 @@ const uint32_t * ZEXPORT get_crc_table() #define DO8(buf) DO4(buf); DO4(buf); /* ========================================================================= */ -uint32_t ZEXPORT crc32(crc, buf, len) - uint32_t crc; - const Bytef *buf; - uInt len; +uint32_t ZEXPORT crc32 (uint32_t crc, const Bytef *buf, uInt len) { #ifdef DYNAMIC_CRC_TABLE if (crc_table_empty) @@ -203,7 +200,9 @@ uint32_t ZEXPORT crc32_no_comp(uint32_t crc, const Bytef *buf, uInt len) * Calculate the crc32 checksum triggering the watchdog every 'chunk_sz' bytes * of input. */ -ulong crc32_wd (ulong crc, const unsigned char *buf, uint len, uint chunk_sz) +uint32_t ZEXPORT crc32_wd (uint32_t crc, + const unsigned char *buf, + uInt len, uInt chunk_sz) { #if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) const unsigned char *end, *curr; |