]> git.dujemihanovic.xyz Git - u-boot.git/commit
mkimage: make mmap() checks consistent
authorMike Frysinger <vapier@gentoo.org>
Thu, 1 May 2008 08:13:05 +0000 (04:13 -0400)
committerWolfgang Denk <wd@denx.de>
Sat, 3 May 2008 21:33:43 +0000 (23:33 +0200)
commitfa956fde60b7ec4dd66bd62f9910fd341b5049a1
treecbd40a8c1d8fa8dd3c431c26e9ab4e0b9b840f2c
parent8e90cd0447a0f0ccf529ef86f0e6b56187d3b82a
mkimage: make mmap() checks consistent

The mmap() related code is full of inconsistent casts/constants when
it comes to error checking, and may break when building on some
systems (like ones that do not implicitly define the caddr_t type).
Let's just avoid the whole mess by writing the code nice and clean in
the first place.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
tools/mkimage.c