summaryrefslogtreecommitdiff
path: root/sysutils/acpidump/patches/patch-ac
blob: e2f879732ec33e509d78a6e25653845b61579dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$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;