summaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/superiotool/superiotool.c')
-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);