diff options
| author | Jes Sorensen | 2010-08-31 09:30:38 +0200 |
|---|---|---|
| committer | Blue Swirl | 2010-09-04 11:45:54 +0200 |
| commit | 37a05af069e14d435fe8fb2cd8c7a8b2f16d137f (patch) | |
| tree | d3dd4f82b9a9128e4156627ca0511535d14ca5d7 | |
| parent | Change DPRINTF() to do{}while(0) to avoid compiler warning (diff) | |
| download | qemu-37a05af069e14d435fe8fb2cd8c7a8b2f16d137f.tar.gz qemu-37a05af069e14d435fe8fb2cd8c7a8b2f16d137f.tar.xz 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>
| -rw-r--r-- | hw/multiboot.c | 2 |
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, ','); |
