summaryrefslogtreecommitdiffstats
path: root/include/image.h
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-04-21 15:50:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-23 09:21:17 +0200
commit4ab9051bd30dec196bb10801fcde746776f5a3a7 (patch)
treed223149a9559d24aa328d853f7c52257810d3a98 /include/image.h
parent521ffee5262294a87395c52dc54787b2bb159092 (diff)
downloadbarebox-4ab9051bd30dec196bb10801fcde746776f5a3a7.tar.gz
barebox-4ab9051bd30dec196bb10801fcde746776f5a3a7.tar.xz
don't cast negative error codes to unsigned size_t
The cast prevents us from doing proper error checking. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 0c8a4b138d..730e3d75b8 100644
--- a/include/image.h
+++ b/include/image.h
@@ -230,7 +230,7 @@ int uimage_verify(struct uimage_handle *handle);
int uimage_load(struct uimage_handle *handle, unsigned int image_no,
int(*flush)(void*, unsigned int));
void uimage_print_contents(struct uimage_handle *handle);
-size_t uimage_get_size(struct uimage_handle *handle, unsigned int image_no);
+ssize_t uimage_get_size(struct uimage_handle *handle, unsigned int image_no);
struct resource *uimage_load_to_sdram(struct uimage_handle *handle,
int image_no, unsigned long load_address);
void *uimage_load_to_buf(struct uimage_handle *handle, int image_no,