mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
Fix OpenBSD linker warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5044 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c93e7817ee
commit
363a37d520
17 changed files with 170 additions and 137 deletions
8
hw/vga.c
8
hw/vga.c
|
@ -1726,7 +1726,8 @@ static void vga_update_text(void *opaque, console_ch_t *chardata)
|
|||
if (!full_update)
|
||||
return;
|
||||
|
||||
sprintf(msg_buffer, "%i x %i Text mode", width, height);
|
||||
snprintf(msg_buffer, sizeof(msg_buffer), "%i x %i Text mode",
|
||||
width, height);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1799,14 +1800,15 @@ static void vga_update_text(void *opaque, console_ch_t *chardata)
|
|||
return;
|
||||
|
||||
s->get_resolution(s, &width, &height);
|
||||
sprintf(msg_buffer, "%i x %i Graphic mode", width, height);
|
||||
snprintf(msg_buffer, sizeof(msg_buffer), "%i x %i Graphic mode",
|
||||
width, height);
|
||||
break;
|
||||
case GMODE_BLANK:
|
||||
default:
|
||||
if (!full_update)
|
||||
return;
|
||||
|
||||
sprintf(msg_buffer, "VGA Blank mode");
|
||||
snprintf(msg_buffer, sizeof(msg_buffer), "VGA Blank mode");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue