Make ioport default tables const
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 6 Sep 2009 16:32:13 +0000 (16:32 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 6 Sep 2009 16:32:13 +0000 (16:32 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
ioport.c

index d90d938494ddb58ac0831ab6ad698df080916e18..5a4fe8d242643b098f37949744275d27b3e47549 100644 (file)
--- 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