From bcfe6585153199a0521045271f224f439f35e226 Mon Sep 17 00:00:00 2001 From: mjacob Date: Tue, 5 May 1998 20:10:05 +0000 Subject: [PATCH] Move declaration within block where it will be used (in case keyboard not defined). --- sys/arch/alpha/alpha/dec_kn300.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/arch/alpha/alpha/dec_kn300.c b/sys/arch/alpha/alpha/dec_kn300.c index 0adea7b47d64..64cede719749 100644 --- a/sys/arch/alpha/alpha/dec_kn300.c +++ b/sys/arch/alpha/alpha/dec_kn300.c @@ -1,4 +1,4 @@ -/* $NetBSD: dec_kn300.c,v 1.3 1998/04/17 02:45:20 mjacob Exp $ */ +/* $NetBSD: dec_kn300.c,v 1.4 1998/05/05 20:10:05 mjacob Exp $ */ /* * Copyright (c) 1998 by Matthew Jacob @@ -32,7 +32,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: dec_kn300.c,v 1.3 1998/04/17 02:45:20 mjacob Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dec_kn300.c,v 1.4 1998/05/05 20:10:05 mjacob Exp $"); #include #include @@ -128,7 +128,6 @@ dec_kn300_cons_init() case 3: { extern struct mcpcia_softc *mcpcias; - struct mcpcia_config *ccp; struct mcpcia_softc *mcp = mcpcias; /* display console ... */ /* @@ -139,8 +138,9 @@ dec_kn300_cons_init() */ if (mcp && mcp->mcpcia_next) { #if NPCKBD > 0 - ccp = &mcp->mcpcia_next->mcpcia_cc; - + struct mcpcia_config *ccp = + &mcp->mcpcia_next->mcpcia_cc; + (void) pckbc_cnattach(&ccp->cc_iot, PCKBC_KBD_SLOT); if ((ctb->ctb_turboslot & 0xffff) == 0)