Fix compilation of r3797 with gcc-4.3.2
Thanks to Niels Ole Salscheider for the problem report.
Corresponding to flashrom svn r360 and coreboot v2 svn r3798.
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
diff --git a/flashrom.c b/flashrom.c
index 4dd2ea1..de3fab5 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -250,7 +250,7 @@
{
uint8_t *buf;
unsigned long size;
- size_t erasedbytes;
+ uint32_t erasedbytes;
FILE *image;
/* Probe for up to three flash chips. */
struct flashchip *flash, *flashes[3];