diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-12-22 06:47:20 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-12-22 06:47:20 (EST) |
commit | 7a33f63486a4685dfee56ee0ae60cc062cd31e68 (patch) | |
tree | 58ff079e9ea6796ae5c7c48744874b97cfc3f34e /resources/utilities/ich9deblob/ich9deblob.c | |
parent | 82e8d082e74de2e17896a9fef9a2949d0c131db8 (diff) | |
download | libreboot-7a33f63486a4685dfee56ee0ae60cc062cd31e68.zip libreboot-7a33f63486a4685dfee56ee0ae60cc062cd31e68.tar.gz libreboot-7a33f63486a4685dfee56ee0ae60cc062cd31e68.tar.bz2 |
ich9deblob: rename factory descriptor buffer variable more clearly
Diffstat (limited to 'resources/utilities/ich9deblob/ich9deblob.c')
-rw-r--r-- | resources/utilities/ich9deblob/ich9deblob.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/utilities/ich9deblob/ich9deblob.c b/resources/utilities/ich9deblob/ich9deblob.c index 05ba4e0..b9986ab 100644 --- a/resources/utilities/ich9deblob/ich9deblob.c +++ b/resources/utilities/ich9deblob/ich9deblob.c @@ -88,11 +88,11 @@ int main(int argc, char *argv[]) // Get the descriptor region dump from the factory.rom // Create empty descriptor buffer (populated below) - char descriptorBuffer[DESCRIPTORREGIONSIZE]; + char factoryDescriptorBuffer[DESCRIPTORREGIONSIZE]; // Extract the descriptor region from the factory.rom dump - // (goes in descriptorBuffer variable) + // (goes in factoryDescriptorBuffer variable) unsigned int readLen; - readLen = fread(descriptorBuffer, sizeof(char), DESCRIPTORREGIONSIZE, fp); + readLen = fread(factoryDescriptorBuffer, sizeof(char), DESCRIPTORREGIONSIZE, fp); if (DESCRIPTORREGIONSIZE != readLen) // { printf("\nerror: could not read descriptor from factory.rom (%i) bytes read\n", readLen); @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) // as defined in the datasheets. This allows us to map the extracted // descriptor over the struct so that it can then be modified // for libreboot's purpose - memcpy(&factoryDescriptorStruct, &descriptorBuffer, DESCRIPTORREGIONSIZE); + memcpy(&factoryDescriptorStruct, &factoryDescriptorBuffer, DESCRIPTORREGIONSIZE); // ----------------------------------------------------------------------------------------------- |