* 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
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;
int n_memranges;
- struct {
+ struct memrange {
unsigned long long base;
unsigned long long size;
} memrange[SYSINFO_MAX_MEM_RANGES];