From aa498bf3d45d585f13ad3f69da81db24708f0b42 Mon Sep 17 00:00:00 2001 From: Bill Fumerola Date: Tue, 17 Aug 1999 22:06:17 +0000 Subject: [PATCH] Wrap two declarations that are only used in an #ifdef in their own #ifdef. Reviewed by: bde --- sys/dev/syscons/syscons.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index fe36d737fc4..271f94281ab 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.316 1999/08/09 10:34:36 phk Exp $ + * $Id: syscons.c,v 1.317 1999/08/13 16:17:54 dt Exp $ */ #include "sc.h" @@ -1444,7 +1444,9 @@ sccnputc(dev_t dev, int c) u_char buf[1]; scr_stat *scp = sc_console; term_stat save = scp->term; +#ifndef SC_NO_HISTORY struct tty *tp; +#endif /* !SC_NO_HISTORY */ int s; /* assert(sc_console != NULL) */ @@ -3561,7 +3563,9 @@ static u_int scgetc(sc_softc_t *sc, u_int flags) { scr_stat *scp; +#ifndef SC_NO_HISTORY struct tty *tp; +#endif u_int c; int this_scr; int f;