summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWard Vandewege <ward@gnu.org>2007-09-24 22:02:31 +0000
committerWard Vandewege <ward@gnu.org>2007-09-24 22:02:31 +0000
commit2ee78d8b064ca41f97bf28b0a6c1af0cf8d2363a (patch)
tree03d90a58d562d6000413a9c03cb797fe34875f11
parent322076cdade5e405cb7102f744f714cd69416ec0 (diff)
downloadcoreboot-2ee78d8b064ca41f97bf28b0a6c1af0cf8d2363a.tar.xz
Fix compilation warning.
Signed-off-by: Ward Vandewege <ward@gnu.org> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2805 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/superiotool/superiotool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index 13e55556d5..99d97275d5 100644
--- a/util/superiotool/superiotool.c
+++ b/util/superiotool/superiotool.c
@@ -75,7 +75,8 @@ const char *get_superio_name(const struct superio_registers reg_table[],
static void dump_regs(const struct superio_registers reg_table[],
int i, int j, uint16_t port)
{
- int k, *idx;
+ int k;
+ const int *idx;
if (reg_table[i].ldn[j].ldn != NOLDN) {
printf("LDN 0x%02x ", reg_table[i].ldn[j].ldn);