mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
7390cdfbf7
commit
37a05af069
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ int load_multiboot(void *fw_cfg,
|
||||||
|
|
||||||
do {
|
do {
|
||||||
char *next_space;
|
char *next_space;
|
||||||
uint32_t mb_mod_length;
|
int mb_mod_length;
|
||||||
uint32_t offs = mbs.mb_buf_size;
|
uint32_t offs = mbs.mb_buf_size;
|
||||||
|
|
||||||
next_initrd = strchr(initrd_filename, ',');
|
next_initrd = strchr(initrd_filename, ',');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue