Author: stepan Date: 2008-08-19 19:51:30 +0200 (Tue, 19 Aug 2008) New Revision: 3525
Modified: trunk/payloads/libpayload/drivers/options.c trunk/payloads/libpayload/include/sysinfo.h Log: 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
Modified: trunk/payloads/libpayload/drivers/options.c =================================================================== --- trunk/payloads/libpayload/drivers/options.c 2008-08-19 17:49:53 UTC (rev 3524) +++ trunk/payloads/libpayload/drivers/options.c 2008-08-19 17:51:30 UTC (rev 3525) @@ -90,7 +90,7 @@ 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;
Modified: trunk/payloads/libpayload/include/sysinfo.h =================================================================== --- trunk/payloads/libpayload/include/sysinfo.h 2008-08-19 17:49:53 UTC (rev 3524) +++ trunk/payloads/libpayload/include/sysinfo.h 2008-08-19 17:51:30 UTC (rev 3525) @@ -39,7 +39,7 @@
int n_memranges;
- struct { + struct memrange { unsigned long long base; unsigned long long size; } memrange[SYSINFO_MAX_MEM_RANGES];