Author: stepan Date: 2009-06-23 12:44:36 +0200 (Tue, 23 Jun 2009) New Revision: 624
Modified: trunk/physmap.c Log: There are some non-C99 compilers out there used to compile flashrom. This fixes compilation for them. Signed-off-by: Stephan Guilloux <[email protected]> Acked-by: Stefan Reinauer <[email protected]> Modified: trunk/physmap.c =================================================================== --- trunk/physmap.c 2009-06-23 00:47:26 UTC (rev 623) +++ trunk/physmap.c 2009-06-23 10:44:36 UTC (rev 624) @@ -80,6 +80,8 @@ void *physmap(const char *descr, unsigned long phys_addr, size_t len) { + void *virt_addr; + if (len == 0) { printf_debug("Not mapping %s, zero size at 0x%08lx.\n", descr, phys_addr); @@ -96,7 +98,7 @@ descr, (unsigned long)len, phys_addr); } - void *virt_addr = sys_physmap(phys_addr, len); + virt_addr = sys_physmap(phys_addr, len); if (NULL == virt_addr) { if (NULL == descr) -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

