Various warning cleanups
This commit is contained in:
@@ -3079,6 +3079,7 @@ xga_init(const device_t *info)
|
||||
xga_t *xga = &svga->xga;
|
||||
FILE *f;
|
||||
uint8_t *rom = NULL;
|
||||
size_t res;
|
||||
|
||||
xga->ext_mem_addr = device_get_config_hex16("ext_mem_addr");
|
||||
xga->instance_isa = device_get_config_int("instance");
|
||||
@@ -3103,7 +3104,7 @@ xga_init(const device_t *info)
|
||||
|
||||
rom = malloc(xga->bios_rom.sz);
|
||||
memset(rom, 0xff, xga->bios_rom.sz);
|
||||
(void) fread(rom, xga->bios_rom.sz, 1, f);
|
||||
res = fread(rom, xga->bios_rom.sz, 1, f);
|
||||
(void) fclose(f);
|
||||
|
||||
xga->bios_rom.rom = rom;
|
||||
|
||||
Reference in New Issue
Block a user