AcpiXtract: Lowercase all output filenames.

Simplify filenames on systems that are case-sensitive.
This commit is contained in:
Robert Moore 2011-09-21 15:19:38 -07:00
parent 8df82fc77f
commit c7cd1fe110

View File

@ -124,6 +124,10 @@
/* Local prototypes */
static void
AxStrlwr (
char *String);
static void
AxCheckAscii (
char *Name,
@ -192,6 +196,31 @@ static char HeaderBuffer[AX_LINE_BUFFER_SIZE];
static char InstanceBuffer[AX_LINE_BUFFER_SIZE];
/*******************************************************************************
*
* FUNCTION: AxStrlwr
*
* PARAMETERS: String - Ascii string
*
* RETURN: None
*
* DESCRIPTION: String lowercase function.
*
******************************************************************************/
static void
AxStrlwr (
char *String)
{
while (*String)
{
*String = (char) tolower ((int) *String);
String++;
}
}
/*******************************************************************************
*
* FUNCTION: AxCheckAscii
@ -599,6 +628,7 @@ AxExtractTables (
sprintf (Filename, "%4.4s.dat", ThisSignature);
}
AxStrlwr (Filename);
OutputFile = fopen (Filename, "w+b");
if (!OutputFile)
{