From d60efc6b0d3d4e90cbbb86e21451e55263c29416 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Tue, 25 Aug 2009 18:29:31 +0000 Subject: Make CPURead/WriteFunc structure 'const' Signed-off-by: Blue Swirl --- hw/vga.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hw/vga.c') diff --git a/hw/vga.c b/hw/vga.c index 3882f20c0a..791d8f5d62 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -2108,13 +2108,13 @@ static void vga_update_text(void *opaque, console_ch_t *chardata) dpy_update(s->ds, 0, 0, s->last_width, height); } -static CPUReadMemoryFunc *vga_mem_read[3] = { +static CPUReadMemoryFunc * const vga_mem_read[3] = { vga_mem_readb, vga_mem_readw, vga_mem_readl, }; -static CPUWriteMemoryFunc *vga_mem_write[3] = { +static CPUWriteMemoryFunc * const vga_mem_write[3] = { vga_mem_writeb, vga_mem_writew, vga_mem_writel, @@ -2401,13 +2401,13 @@ static void vga_mm_writel (void *opaque, vga_ioport_write(s, addr >> s->it_shift, value); } -static CPUReadMemoryFunc *vga_mm_read_ctrl[] = { +static CPUReadMemoryFunc * const vga_mm_read_ctrl[] = { &vga_mm_readb, &vga_mm_readw, &vga_mm_readl, }; -static CPUWriteMemoryFunc *vga_mm_write_ctrl[] = { +static CPUWriteMemoryFunc * const vga_mm_write_ctrl[] = { &vga_mm_writeb, &vga_mm_writew, &vga_mm_writel, -- cgit 1.4.1