summaryrefslogtreecommitdiff
path: root/source/tools/acpibin/abcompare.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tools/acpibin/abcompare.c')
-rw-r--r--source/tools/acpibin/abcompare.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/tools/acpibin/abcompare.c b/source/tools/acpibin/abcompare.c
index 7cef3624ff51e..a314172d194fd 100644
--- a/source/tools/acpibin/abcompare.c
+++ b/source/tools/acpibin/abcompare.c
@@ -619,7 +619,7 @@ AbGetFile (
{
FILE *File;
UINT32 Size;
- char *Buffer = NULL;
+ char *DataBuffer = NULL;
size_t Actual;
@@ -643,8 +643,8 @@ AbGetFile (
/* Allocate a buffer for the entire file */
- Buffer = calloc (Size, 1);
- if (!Buffer)
+ DataBuffer = calloc (Size, 1);
+ if (!DataBuffer)
{
printf ("Could not allocate buffer of size %u\n", Size);
goto ErrorExit;
@@ -652,12 +652,12 @@ AbGetFile (
/* Read the entire file */
- Actual = fread (Buffer, 1, Size, File);
+ Actual = fread (DataBuffer, 1, Size, File);
if (Actual != Size)
{
printf ("Could not read the input file %s\n", Filename);
- free (Buffer);
- Buffer = NULL;
+ free (DataBuffer);
+ DataBuffer = NULL;
goto ErrorExit;
}
@@ -665,7 +665,7 @@ AbGetFile (
ErrorExit:
fclose (File);
- return (Buffer);
+ return (DataBuffer);
}