From: "Reimar Döffinger" <Reimar.Doeffinger@gmx.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled const.
Date: Sat, 12 Sep 2009 15:41:04 +0200 [thread overview]
Message-ID: <20090912134104.GA14651@1und1.de> (raw)
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
---
hw/eepro100.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 60426b1..f930ccd 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -524,7 +524,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",
@@ -949,14 +949,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)",
--
1.6.4.2
reply other threads:[~2009-09-12 13:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090912134104.GA14651@1und1.de \
--to=reimar.doeffinger@gmx.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).