diff options
author | Robert Moore <Robert.Moore@intel.com> | 2016-06-15 10:51:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-15 10:51:12 -0700 |
commit | d776c9ee6e67f3b7a186d809763558ca7a358710 (patch) | |
tree | 22aee76d7f384a2553421abf763747a229bf0680 /source/common/acfileio.c | |
parent | 8aac0be3c840747a032b63e7365c99190e2a0ba9 (diff) | |
download | acpica-revert-143-efi-edk2.tar.gz |
Revert "Efi edk2"revert-143-efi-edk2
Diffstat (limited to 'source/common/acfileio.c')
-rw-r--r-- | source/common/acfileio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/common/acfileio.c b/source/common/acfileio.c index e53b825a7..c00580fc7 100644 --- a/source/common/acfileio.c +++ b/source/common/acfileio.c @@ -118,6 +118,7 @@ #include "acapps.h" #include "actables.h" #include "acutils.h" +#include <errno.h> #define _COMPONENT ACPI_UTILITIES ACPI_MODULE_NAME ("acfileio") @@ -169,7 +170,7 @@ AcGetAllTablesFromFile ( File = fopen (Filename, "rb"); if (!File) { - fprintf (stderr, "Could not open input file: %s\n", Filename); + perror ("Could not open input file"); if (errno == ENOENT) { return (AE_NOT_EXIST); @@ -351,7 +352,7 @@ AcGetOneTableFromFile ( /* Allocate a buffer for the entire table */ - Table = AcpiOsAllocate ((ACPI_SIZE) TableHeader.Length); + Table = AcpiOsAllocate ((size_t) TableHeader.Length); if (!Table) { return (AE_NO_MEMORY); @@ -459,7 +460,7 @@ AcValidateTableHeader ( long TableOffset) { ACPI_TABLE_HEADER TableHeader; - ACPI_SIZE Actual; + size_t Actual; long OriginalOffset; UINT32 FileSize; UINT32 i; |