misc fixes:
authorStefan Reinauer <stepan@coresystems.de>
Tue, 19 Aug 2008 17:51:30 +0000 (17:51 +0000)
committerStefan Reinauer <stepan@openbios.org>
Tue, 19 Aug 2008 17:51:30 +0000 (17:51 +0000)
 * 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

payloads/libpayload/drivers/options.c
payloads/libpayload/include/sysinfo.h

index aa43340c6be5ac320ed2975ef7f51e5236645522..4534018ab8a27a989376b932a81d4c054597f7f5 100644 (file)
@@ -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;
index 1e83488a52a23339909f3111ed2e77c3e22078c0..a9d7d122fb032acec3030bd5e3b4df75c71aafd7 100644 (file)
@@ -39,7 +39,7 @@ struct sysinfo_t {
 
        int n_memranges;
 
-       struct {
+       struct memrange {
                unsigned long long base;
                unsigned long long size;
        } memrange[SYSINFO_MAX_MEM_RANGES];