From 37a05af069e14d435fe8fb2cd8c7a8b2f16d137f Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Tue, 31 Aug 2010 09:30:38 +0200 Subject: [PATCH] load_multiboot(): get_image_size() returns int Do not store return of get_image_size() in a uint32_t as it makes it impossible to detect error returns from get_image_size. Signed-off-by: Jes Sorensen Signed-off-by: Blue Swirl --- hw/multiboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/multiboot.c b/hw/multiboot.c index dc980e6498..f9097a2f60 100644 --- a/hw/multiboot.c +++ b/hw/multiboot.c @@ -252,7 +252,7 @@ int load_multiboot(void *fw_cfg, do { char *next_space; - uint32_t mb_mod_length; + int mb_mod_length; uint32_t offs = mbs.mb_buf_size; next_initrd = strchr(initrd_filename, ',');