diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-12-22 11:47:20 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-12-22 11:47:20 +0000 |
commit | 7a33f63486a4685dfee56ee0ae60cc062cd31e68 (patch) | |
tree | 58ff079e9ea6796ae5c7c48744874b97cfc3f34e /resources/utilities | |
parent | 82e8d082e74de2e17896a9fef9a2949d0c131db8 (diff) | |
download | librebootfr-7a33f63486a4685dfee56ee0ae60cc062cd31e68.tar.gz librebootfr-7a33f63486a4685dfee56ee0ae60cc062cd31e68.zip |
ich9deblob: rename factory descriptor buffer variable more clearly
Diffstat (limited to 'resources/utilities')
-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 05ba4e05..b9986aba 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); // ----------------------------------------------------------------------------------------------- |