pkgsrc/sysutils/acpidump/patches/patch-ac
uebayasi 17b3c4b1ab Initial import of Portable ACPI dumper (acpidump-20020711).
The acpidump utility analyzes ACPI tables in physical memory and dumps
them to standard output.  In addition, acpidump can disassemble AML
(ACPI Machine Language) found in these tables and dump them as ASL
(ACPI Source Language).
2004-02-29 05:57:44 +00:00

25 lines
870 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2004/02/29 05:57:44 uebayasi Exp $
--- aml/aml_parse.c.orig Wed Oct 24 01:02:48 2001
+++ aml/aml_parse.c
@@ -708,7 +708,7 @@ aml_parse_field(struct aml_environ *env,
width = aml_parse_pkglength(env);
template->bitlen = width;
aml_print_namestring(name);
- AML_CREATE_NAME(aname, env, name, NULL);
+ AML_CREATE_NAME(aname, env, name, 0);
/* Allignment */
if (width == 16) {
template->bitoffset += 15;
@@ -726,9 +726,9 @@ aml_parse_field(struct aml_environ *env,
if (aname->property != NULL) {
env->stat = aml_stat_panic;
AML_DEBUGPRINT("Already Defined \n");
- return (NULL);
+ return (0);
}
- AML_ALLOC_OBJECT(aname->property, env, aml_t_field, NULL);
+ AML_ALLOC_OBJECT(aname->property, env, aml_t_field, 0);
prop = &aname->property->field;
*prop = *template;
template->bitoffset += width;