$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;