From: Bartlomiej Sieka Date: Fri, 25 Apr 2008 12:09:44 +0200 Subject: [U-Boot-Users] [PATCH 1/2] crc32: use uint32_t rather than unsigned long in watchdog-aware variant In-Reply-To: <20080425100716.32281.23828.stgit@pollux.denx.de> References: <20080425100716.32281.23828.stgit@pollux.denx.de> Message-ID: <20080425100940.32281.20262.stgit@pollux.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Propagate change introduced by "crc32: use uint32_t rather than unsigned long", commit id 89cdab788f3716b335fefb60b836ebcf975aceab. While there, change uint to uInt in crc32_wd prototype, to match convention already present in the file. Signed-off-by: Bartlomiej Sieka --- lib_generic/crc32.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib_generic/crc32.c b/lib_generic/crc32.c index 58cd22e..a7073c0 100644 --- a/lib_generic/crc32.c +++ b/lib_generic/crc32.c @@ -203,7 +203,8 @@ 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 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;