summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2010-08-31 09:30:38 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-09-04 09:45:54 +0000
commit37a05af069e14d435fe8fb2cd8c7a8b2f16d137f (patch)
treed3dd4f82b9a9128e4156627ca0511535d14ca5d7 /hw
parent7390cdfbf768617b80f570e17aa2e6c1c7b92592 (diff)
downloadqemu-37a05af069e14d435fe8fb2cd8c7a8b2f16d137f.tar.gz
qemu-37a05af069e14d435fe8fb2cd8c7a8b2f16d137f.tar.bz2
qemu-37a05af069e14d435fe8fb2cd8c7a8b2f16d137f.zip
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 <Jes.Sorensen@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/multiboot.c2
1 files changed, 1 insertions, 1 deletions
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, ',');