summaryrefslogtreecommitdiff
path: root/source/tools/acpixtract/axutils.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2016-11-17 18:06:08 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2016-11-17 18:06:08 +0000
commita56e3c255d5c5dfa4dd3a2fda4705a1607a6b7f3 (patch)
tree830d95042126506cd52440fe9710bb4e6811cfde /source/tools/acpixtract/axutils.c
parent7600ac2283596bd000a29b9347e95346d3b740d7 (diff)
Import ACPICA 20161117.vendor/acpica/20161117
Notes
svn path=/vendor-sys/acpica/dist/; revision=308770 svn path=/vendor-sys/acpica/20161117/; revision=308771; tag=vendor/acpica/20161117
Diffstat (limited to 'source/tools/acpixtract/axutils.c')
-rw-r--r--source/tools/acpixtract/axutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/tools/acpixtract/axutils.c b/source/tools/acpixtract/axutils.c
index 6af8cdc29a3c..68e51daa2dda 100644
--- a/source/tools/acpixtract/axutils.c
+++ b/source/tools/acpixtract/axutils.c
@@ -100,9 +100,9 @@ AxIsEmptyLine (
Buffer++;
}
- /* If end-of-line, this line is empty */
+ /* Line is empty when a Unix or DOS-style line terminator is found. */
- if (*Buffer == '\n')
+ if ((*Buffer == '\r') || (*Buffer == '\n'))
{
return (1);
}
@@ -262,7 +262,7 @@ AxCountTableInstances (
unsigned int Instances = 0;
- InputFile = fopen (InputPathname, "rt");
+ InputFile = fopen (InputPathname, "r");
if (!InputFile)
{
printf ("Could not open input file %s\n", InputPathname);