From 35845a2acb869ea028c98c8c2b912ae3c61053e2 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 20 Mar 2008 20:05:22 +0000 Subject: Smaller fixes to allow using -Wall (trivial). Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3181 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/coreinfo/coreboot_module.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'payloads/coreinfo/coreboot_module.c') diff --git a/payloads/coreinfo/coreboot_module.c b/payloads/coreinfo/coreboot_module.c index 906833eab3..429d1235f5 100644 --- a/payloads/coreinfo/coreboot_module.c +++ b/payloads/coreinfo/coreboot_module.c @@ -114,6 +114,8 @@ int coreboot_module_redraw(WINDOW *win) UNPACK_CB64(cb_info.range[i].start) + UNPACK_CB64(cb_info.range[i].size) - 1); } + + return 0; } static void parse_memory(unsigned char *ptr) @@ -139,8 +141,8 @@ static void parse_mainboard(unsigned char *ptr) { struct cb_mainboard *mb = (struct cb_mainboard *)ptr; - strncpy(cb_info.vendor, MB_VENDOR_STRING(mb), 31); - strncpy(cb_info.part, MB_PART_STRING(mb), 31); + strncpy(cb_info.vendor, (const char *)MB_VENDOR_STRING(mb), 31); + strncpy(cb_info.part, (const char *)MB_PART_STRING(mb), 31); } static void parse_strings(unsigned char *ptr) @@ -148,7 +150,7 @@ static void parse_strings(unsigned char *ptr) struct cb_string *string = (struct cb_string *)ptr; int index = string->tag - CB_TAG_VERSION; - strncpy(cb_info.strings[index], string->string, 63); + strncpy(cb_info.strings[index], (const char *)string->string, 63); cb_info.strings[index][63] = 0; } @@ -173,7 +175,7 @@ static int parse_header(void *addr, int len) for (i = 0; i < len; i += 16, ptr += 16) { header = (struct cb_header *)ptr; - if (!strncmp(header->signature, "LBIO", 4)) + if (!strncmp((const char *)header->signature, "LBIO", 4)) break; } -- cgit v1.2.3