summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2008-12-05 11:56:57 +0000
committerPeter Stuge <peter@stuge.se>2008-12-05 11:56:57 +0000
commit2fcc0b52e48b32de27086cfd7f2675c2b6600ee2 (patch)
tree024eaf03d347d0320789b475f48ea6d9c1db0217
parentf0c811dd15d09bee9c5ff34ed96930b3720a6f79 (diff)
downloadast2050-flashrom-2fcc0b52e48b32de27086cfd7f2675c2b6600ee2.zip
ast2050-flashrom-2fcc0b52e48b32de27086cfd7f2675c2b6600ee2.tar.gz
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>
-rw-r--r--flashrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index 4dd2ea1..de3fab5 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -250,7 +250,7 @@ int main(int argc, char *argv[])
{
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];
OpenPOWER on IntegriCloud