summaryrefslogtreecommitdiff
path: root/source/common/acfileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/common/acfileio.c')
-rw-r--r--source/common/acfileio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/common/acfileio.c b/source/common/acfileio.c
index c00580fc7..e53b825a7 100644
--- a/source/common/acfileio.c
+++ b/source/common/acfileio.c
@@ -118,7 +118,6 @@
#include "acapps.h"
#include "actables.h"
#include "acutils.h"
-#include <errno.h>
#define _COMPONENT ACPI_UTILITIES
ACPI_MODULE_NAME ("acfileio")
@@ -170,7 +169,7 @@ AcGetAllTablesFromFile (
File = fopen (Filename, "rb");
if (!File)
{
- perror ("Could not open input file");
+ fprintf (stderr, "Could not open input file: %s\n", Filename);
if (errno == ENOENT)
{
return (AE_NOT_EXIST);
@@ -352,7 +351,7 @@ AcGetOneTableFromFile (
/* Allocate a buffer for the entire table */
- Table = AcpiOsAllocate ((size_t) TableHeader.Length);
+ Table = AcpiOsAllocate ((ACPI_SIZE) TableHeader.Length);
if (!Table)
{
return (AE_NO_MEMORY);
@@ -460,7 +459,7 @@ AcValidateTableHeader (
long TableOffset)
{
ACPI_TABLE_HEADER TableHeader;
- size_t Actual;
+ ACPI_SIZE Actual;
long OriginalOffset;
UINT32 FileSize;
UINT32 i;