diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-12 15:20:24 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-09-12 15:20:24 +0000 |
commit | 6a0b9cc91f938d16acdceb5f3b9d5b974c12835f (patch) | |
tree | 4395b3c54599b6bfdb681adab5bf1c06e312e7d3 | |
parent | d8becc354bab3638568fc4b7ff508023a737fde5 (diff) |
Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled const.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | hw/eepro100.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c index e28fd5b945..d3b7c3d772 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -515,7 +515,7 @@ static void nic_reset(void *opaque) } #if defined(DEBUG_EEPRO100) -static const char *reg[PCI_IO_SIZE / 4] = { +static const char * const reg[PCI_IO_SIZE / 4] = { "Command/Status", "General Pointer", "Port", @@ -932,14 +932,14 @@ static void eepro100_write_pointer(EEPRO100State * s, uint32_t val) ****************************************************************************/ #if defined(DEBUG_EEPRO100) -static const char *mdi_op_name[] = { +static const char * const mdi_op_name[] = { "opcode 0", "write", "read", "opcode 3" }; -static const char *mdi_reg_name[] = { +static const char * const mdi_reg_name[] = { "Control", "Status", "PHY Identification (Word 1)", |