Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Fix uninitialized variable warnings.



details:   https://anonhg.NetBSD.org/src/rev/6ab6ac5d6731
branches:  trunk
changeset: 554349:6ab6ac5d6731
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 27 06:15:52 2003 +0000

description:
Fix uninitialized variable warnings.

diffstat:

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

diffs (27 lines):

diff -r cf711ae080e3 -r 6ab6ac5d6731 sys/dev/acpi/pckbc_acpi.c
--- a/sys/dev/acpi/pckbc_acpi.c Mon Oct 27 05:49:15 2003 +0000
+++ b/sys/dev/acpi/pckbc_acpi.c Mon Oct 27 06:15:52 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pckbc_acpi.c,v 1.4 2003/01/27 19:18:46 jmcneill Exp $  */
+/*     $NetBSD: pckbc_acpi.c,v 1.5 2003/10/27 06:15:52 christos Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbc_acpi.c,v 1.4 2003/01/27 19:18:46 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbc_acpi.c,v 1.5 2003/10/27 06:15:52 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -237,7 +237,7 @@
        struct pckbc_acpi_softc *psc;
        isa_chipset_tag_t ic = NULL;
        void *rv = NULL;
-       int irq, ist;
+       int irq = 0, ist = 0; /* XXX: gcc */
        int i;
 
        /*



Home | Main Index | Thread Index | Old Index