summaryrefslogtreecommitdiff
path: root/payloads/libpayload/i386
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-04-11 18:01:50 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-04-11 18:01:50 +0000
commitfad8c2bd7ca3605fdae3548b8a932aa309871931 (patch)
tree26cbef49876963512753dd271f9fafcff77baf26 /payloads/libpayload/i386
parent54315533cc8f162d5251458c6b9fa9f38c3f47f0 (diff)
downloadcoreboot-fad8c2bd7ca3605fdae3548b8a932aa309871931.tar.xz
Various small consistency fixes (trivial):
- Use _FOO_H include guard format everywhere. - Add missing speaker.c prototypes to libpayload.h. - Consistently use short form u8/u16/u32 instead of uint8_t et. al. - kcofig: Use 'depends on' instead of 'depends', which seems deprecated. 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@3234 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/i386')
-rw-r--r--payloads/libpayload/i386/coreboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/i386/coreboot.c b/payloads/libpayload/i386/coreboot.c
index 8e4a19a5ee..e9bc40fc41 100644
--- a/payloads/libpayload/i386/coreboot.c
+++ b/payloads/libpayload/i386/coreboot.c
@@ -95,10 +95,10 @@ static int cb_parse_header(void *addr, int len, struct sysinfo_t *info)
return 0;
/* Make sure the checksums match. */
- if (ipchksum((uint16_t *) header, sizeof(*header)) != 0)
+ if (ipchksum((u16 *) header, sizeof(*header)) != 0)
return -1;
- if (ipchksum((uint16_t *) (ptr + sizeof(*header)),
+ if (ipchksum((u16 *) (ptr + sizeof(*header)),
header->table_bytes) != header->table_checksum)
return -1;