]> git.sur5r.net Git - u-boot/commit
sandbox: Correct compiler warnings in cmd_bootm/cmd_ximg
authorSimon Glass <sjg@chromium.org>
Fri, 30 Aug 2013 17:00:09 +0000 (11:00 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 3 Sep 2013 19:29:24 +0000 (13:29 -0600)
commit628af1790ac3231455c1ae4a4e43b67136799fa2
treea26f846a88ca4702e867428a40fed7c6b8562420
parentfb18fa95a14ae875ef0a5421cd9fecc00c7c3a4c
sandbox: Correct compiler warnings in cmd_bootm/cmd_ximg

Correct the following warnings found with sandbox when compression
is enabled.

cmd_bootm.c: In function 'bootm_load_os':
cmd_bootm.c:443:11: warning: passing argument 4 of 'lzop_decompress' from incompatible pointer type [enabled by default]
/usr/local/google/c/cosarm/src/third_party/u-boot/files/include/linux/lzo.h:31:5: note: expected 'size_t *' but argument is of type 'uint *'
cmd_ximg.c: In function 'do_imgextract':
cmd_ximg.c:225:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cmd_ximg.c:225:14: warning: 'hdr' may be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Kees Cook <keescook@chromium.org>
common/cmd_bootm.c
common/cmd_ximg.c