Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Move a declaration.



details:   https://anonhg.NetBSD.org/src/rev/ab4619e34ff4
branches:  trunk
changeset: 554695:ab4619e34ff4
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat Nov 01 01:03:23 2003 +0000

description:
Move a declaration.

diffstat:

 sys/dev/acpi/acpi.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r acc09986407f -r ab4619e34ff4 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Sat Nov 01 00:42:04 2003 +0000
+++ b/sys/dev/acpi/acpi.c       Sat Nov 01 01:03:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.c,v 1.48 2003/10/31 20:54:18 mycroft Exp $        */
+/*     $NetBSD: acpi.c,v 1.49 2003/11/01 01:03:23 mycroft Exp $        */
 
 /*
  * Copyright 2001, 2003 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.48 2003/10/31 20:54:18 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.49 2003/11/01 01:03:23 mycroft Exp $");
 
 #include "opt_acpi.h"
 
@@ -789,7 +789,6 @@
 {
        ACPI_STATUS rv;
        ACPI_BUFFER buf;
-       ACPI_OBJECT *param;
 
        if (handle == NULL)
                handle = ACPI_ROOT_OBJECT;
@@ -799,7 +798,7 @@
 
        rv = AcpiEvaluateObjectTyped(handle, path, NULL, &buf, ACPI_TYPE_STRING);
        if (rv == AE_OK) {
-               param = buf.Pointer;
+               ACPI_OBJECT *param = buf.Pointer;
                char *ptr = param->String.Pointer;
                size_t len = param->String.Length;
                if ((*stringp = AcpiOsAllocate(len)) == NULL)



Home | Main Index | Thread Index | Old Index