From fad8c2bd7ca3605fdae3548b8a932aa309871931 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 11 Apr 2008 18:01:50 +0000 Subject: 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 Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3234 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/i386/coreboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'payloads/libpayload/i386') 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; -- cgit v1.2.3