mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 01:44:33 +03:00
Merge pull request #403 from SchmErik/fi-fix-03
Miscellaneous fixes for fi option
This commit is contained in:
commit
627f8fbfd2
@ -225,8 +225,6 @@ AeProcessInitFile(
|
||||
{
|
||||
ACPI_WALK_STATE *WalkState;
|
||||
int i;
|
||||
char *TempBuffer = NULL;
|
||||
UINT64 TempInt = 0;
|
||||
UINT64 idx;
|
||||
ACPI_STATUS Status;
|
||||
|
||||
@ -241,11 +239,10 @@ AeProcessInitFile(
|
||||
WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL);
|
||||
NameBuffer[0] = '\\';
|
||||
|
||||
while (getline (&TempBuffer, &TempInt, InitFile) != -1)
|
||||
while (fgets (LineBuffer, AE_FILE_BUFFER_SIZE, InitFile) != NULL)
|
||||
{
|
||||
++AcpiGbl_InitFileLineCount;
|
||||
}
|
||||
AcpiOsFree (TempBuffer);
|
||||
rewind (InitFile);
|
||||
|
||||
AcpiGbl_InitEntries =
|
||||
@ -276,7 +273,7 @@ AeProcessInitFile(
|
||||
{
|
||||
AcpiOsPrintf ("%s %s\n", ValueBuffer,
|
||||
AcpiFormatException (Status));
|
||||
return;
|
||||
goto CleanupAndExit;
|
||||
}
|
||||
|
||||
AeEnterInitFileEntry (AcpiGbl_InitEntries[idx], WalkState);
|
||||
|
Loading…
x
Reference in New Issue
Block a user