summaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-03-29 01:35:21 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-03-29 01:35:21 +0000
commit42cccdf03b17a7085099386edb41d8fd9092a170 (patch)
tree59cad0e1f94a3fcc23c4292b878e49d6e7731784 /util/superiotool/superiotool.c
parentda0efc4ca5cd880745028abac97589b9afc1d034 (diff)
downloadcoreboot-42cccdf03b17a7085099386edb41d8fd9092a170.tar.xz
Make a few array entries only as big as they absolutely need to be (trivial).
This decreases the size of the superiotool binary from ca. 1.1 MB to 600 KB. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3194 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.c')
-rw-r--r--util/superiotool/superiotool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index c70aff947c..5ee383ce34 100644
--- a/util/superiotool/superiotool.c
+++ b/util/superiotool/superiotool.c
@@ -80,7 +80,7 @@ static void dump_regs(const struct superio_registers reg_table[],
int i, int j, uint16_t port)
{
int k;
- const int *idx;
+ const int16_t *idx;
if (reg_table[i].ldn[j].ldn != NOLDN) {
printf("LDN 0x%02x", reg_table[i].ldn[j].ldn);