Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Move declaration of error variable to avoid...



details:   https://anonhg.NetBSD.org/src/rev/6a937e9501cf
branches:  trunk
changeset: 580719:6a937e9501cf
user:      augustss <augustss%NetBSD.org@localhost>
date:      Fri May 06 00:10:00 2005 +0000

description:
Move declaration of error variable to avoid 'unused' warning.

diffstat:

 sys/arch/x86/x86/consinit.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 888fbfac5f4d -r 6a937e9501cf sys/arch/x86/x86/consinit.c
--- a/sys/arch/x86/x86/consinit.c       Thu May 05 23:21:58 2005 +0000
+++ b/sys/arch/x86/x86/consinit.c       Fri May 06 00:10:00 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: consinit.c,v 1.5 2005/04/29 20:11:01 augustss Exp $    */
+/*     $NetBSD: consinit.c,v 1.6 2005/05/06 00:10:00 augustss Exp $    */
 
 /*
  * Copyright (c) 1998
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.5 2005/04/29 20:11:01 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.6 2005/05/06 00:10:00 augustss Exp $");
 
 #include "opt_kgdb.h"
 
@@ -144,7 +144,6 @@
 {
        const struct btinfo_console *consinfo;
        static int initted;
-       int error;
 
        if (initted)
                return;
@@ -158,6 +157,8 @@
 
 #if (NPC > 0) || (NVGA > 0) || (NEGA > 0) || (NPCDISPLAY > 0)
        if (!strcmp(consinfo->devname, "pc")) {
+               int error;
+
 #if (NVGA > 0)
                if (!vga_cnattach(X86_BUS_SPACE_IO, X86_BUS_SPACE_MEM,
                                  -1, 1))



Home | Main Index | Thread Index | Old Index