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/onenand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/onenand.c') diff --git a/hw/onenand.c b/hw/onenand.c index 84fdb21..59bc8ac 100644 --- a/hw/onenand.c +++ b/hw/onenand.c @@ -603,13 +603,13 @@ static void onenand_write(void *opaque, target_phys_addr_t addr, } } -static CPUReadMemoryFunc *onenand_readfn[] = { +static CPUReadMemoryFunc * const onenand_readfn[] = { onenand_read, /* TODO */ onenand_read, onenand_read, }; -static CPUWriteMemoryFunc *onenand_writefn[] = { +static CPUWriteMemoryFunc * const onenand_writefn[] = { onenand_write, /* TODO */ onenand_write, onenand_write, -- cgit v1.1