summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2008-08-19 17:51:30 +0000
committerStefan Reinauer <stepan@openbios.org>2008-08-19 17:51:30 +0000
commit34b9f867cdfe466e17da0e418b1746a517ed7256 (patch)
tree371d60f33d691c4904b68cc219d9a3c977fa03fd /payloads/libpayload/drivers
parent99c085690365fa7af18863be292d7ada32fcf53a (diff)
downloadcoreboot-34b9f867cdfe466e17da0e418b1746a517ed7256.tar.xz
misc fixes:
* give struct memrange a name * add explicit cast. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Jordan Crouse <jordan.crouse@amd.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3525 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/drivers')
-rw-r--r--payloads/libpayload/drivers/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/options.c b/payloads/libpayload/drivers/options.c
index aa43340c6b..4534018ab8 100644
--- a/payloads/libpayload/drivers/options.c
+++ b/payloads/libpayload/drivers/options.c
@@ -90,7 +90,7 @@ int get_option(void *dest, char *name)
for ( cmos_entry = (struct cb_cmos_entries*)((unsigned char *)option_table + option_table->header_length);
cmos_entry->tag == CB_TAG_OPTION;
cmos_entry = (struct cb_cmos_entries*)((unsigned char *)cmos_entry + cmos_entry->size)) {
- if (memcmp(cmos_entry->name, name, len))
+ if (memcmp((const char*)cmos_entry->name, name, len))
continue;
if(get_cmos_value(cmos_entry->bit, cmos_entry->length, dest))
return 1;