diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-12-22 15:45:56 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-12-22 15:45:56 (EST) |
commit | a2c90a09d848586d61a3307435d7250de7063ac2 (patch) | |
tree | 0f21cd6314aa72dd37c37be49518194d383516b9 /resources | |
parent | 982d724f3fc21c78e33f65e2fe3d2cce6482a4f9 (diff) | |
download | libreboot-a2c90a09d848586d61a3307435d7250de7063ac2.zip libreboot-a2c90a09d848586d61a3307435d7250de7063ac2.tar.gz libreboot-a2c90a09d848586d61a3307435d7250de7063ac2.tar.bz2 |
ich9deblob: move int romSize variable init to top of main
Diffstat (limited to 'resources')
-rw-r--r-- | resources/utilities/ich9deblob/ich9deblob.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/utilities/ich9deblob/ich9deblob.c b/resources/utilities/ich9deblob/ich9deblob.c index ad4960c..9d60178 100644 --- a/resources/utilities/ich9deblob/ich9deblob.c +++ b/resources/utilities/ich9deblob/ich9deblob.c @@ -99,6 +99,9 @@ int main(int argc, char *argv[]) // Used when reading the factory.rom to extract descriptor/gbe regions unsigned int bufferLength; + // For storing the size of the factory.rom dump in bytes + int romSize; + // ----------------------------------------------------------------------------------------------- // Compatibility checks. This version of ich9deblob is not yet porable. @@ -173,7 +176,7 @@ int main(int argc, char *argv[]) // Get size of ROM image // This is needed for relocating the BIOS region (per descriptor) fseek(fp, 0L, SEEK_END); - int romSize = ftell(fp); + romSize = ftell(fp); printf("\nfactory.rom size: [%i] bytes\n", romSize); |