summaryrefslogtreecommitdiff
path: root/payloads/coreinfo/coreboot_module.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-03-20 20:05:22 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-03-20 20:05:22 +0000
commit35845a2acb869ea028c98c8c2b912ae3c61053e2 (patch)
tree9ac674e56ec1470c113ce850efc976c2bf214bf7 /payloads/coreinfo/coreboot_module.c
parent6a441bfb46337ed6b59abed56dad35d94802282c (diff)
downloadcoreboot-35845a2acb869ea028c98c8c2b912ae3c61053e2.tar.xz
Smaller fixes to allow using -Wall (trivial).
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@3181 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/coreinfo/coreboot_module.c')
-rw-r--r--payloads/coreinfo/coreboot_module.c10
1 files changed, 6 insertions, 4 deletions
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;
}