]> git.sur5r.net Git - u-boot/commit
crc32: use uint32_t rather than unsigned long
authorMike Frysinger <vapier@gentoo.org>
Mon, 31 Mar 2008 15:02:01 +0000 (11:02 -0400)
committerWolfgang Denk <wd@denx.de>
Thu, 24 Apr 2008 11:18:17 +0000 (13:18 +0200)
commit89cdab788f3716b335fefb60b836ebcf975aceab
tree8d315784366d9b3c5ce7ffd39913eb6fb3979a26
parent58c5376ba67767ee684069d43e7f747a5d9ae8ed
crc32: use uint32_t rather than unsigned long

The envcrc.c does sizeof(unsigned long) when calculating the crc, but
this is done with the build toolchain instead of the target tool
chain, so if the build is a 64bit system but the target is 32bits,
the size will obviously be wrong. This converts all unsigned long
stuff related to crc32 to uint32_t types. Compile tested only: output
of ./tools/envcrc when run on a 32bit build system matches that of a
64bit build system.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Makefile
common/image.c
include/common.h
include/environment.h
lib_generic/crc32.c
tools/Makefile
tools/envcrc.c