summaryrefslogtreecommitdiff
path: root/ioport.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-06 16:32:13 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-06 16:32:13 +0000
commit2213ca965012cddff5a9a3e9395b00a56cae0679 (patch)
tree95cb6369817156bc1e35d834b5f8195f6f3446d6 /ioport.c
parent9bfc56c2782e03ff5aa672e18b57e559fe2a05af (diff)
downloadqemu-2213ca965012cddff5a9a3e9395b00a56cae0679.tar.gz
qemu-2213ca965012cddff5a9a3e9395b00a56cae0679.tar.bz2
qemu-2213ca965012cddff5a9a3e9395b00a56cae0679.zip
Make ioport default tables const
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'ioport.c')
-rw-r--r--ioport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ioport.c b/ioport.c
index d90d938494..5a4fe8d242 100644
--- a/ioport.c
+++ b/ioport.c
@@ -56,7 +56,7 @@ static IOPortWriteFunc default_ioport_writeb, default_ioport_writew, default_iop
static uint32_t ioport_read(int index, uint32_t address)
{
- static IOPortReadFunc *default_func[3] = {
+ static IOPortReadFunc * const default_func[3] = {
default_ioport_readb,
default_ioport_readw,
default_ioport_readl
@@ -69,7 +69,7 @@ static uint32_t ioport_read(int index, uint32_t address)
static void ioport_write(int index, uint32_t address, uint32_t data)
{
- static IOPortWriteFunc *default_func[3] = {
+ static IOPortWriteFunc * const default_func[3] = {
default_ioport_writeb,
default_ioport_writew,
default_ioport_writel