From 4072b525cc5a9d87f98ed3b212279528be63fb96 Mon Sep 17 00:00:00 2001 From: he Date: Tue, 10 Oct 2006 23:09:21 +0000 Subject: [PATCH] The use of a local variable is conditional on FBDEBUG, so make the declaration too. Makes this build without FBDEBUG defined. --- sys/dev/hpc/bivideo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/dev/hpc/bivideo.c b/sys/dev/hpc/bivideo.c index 8982be6765dd..7c7be1a1bcd6 100644 --- a/sys/dev/hpc/bivideo.c +++ b/sys/dev/hpc/bivideo.c @@ -1,4 +1,4 @@ -/* $NetBSD: bivideo.c,v 1.24 2006/10/09 10:33:42 peter Exp $ */ +/* $NetBSD: bivideo.c,v 1.25 2006/10/10 23:09:21 he Exp $ */ /*- * Copyright (c) 1999-2001 @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bivideo.c,v 1.24 2006/10/09 10:33:42 peter Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bivideo.c,v 1.25 2006/10/10 23:09:21 he Exp $"); #ifdef _KERNEL_OPT #include "opt_hpcfb.h" @@ -519,7 +519,9 @@ bivideo_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct lwp *l) sc->sc_max_contrast < dispparam->curval) return (EINVAL); if (sc->sc_max_contrast > 0) { +#ifdef FBDEBUG int org = sc->sc_contrast; +#endif bivideo_set_contrast(sc, dispparam->curval); VPRINTF(("bivideo_ioctl: SET:CONTRAST org=%d, current=%d\n", org, sc->sc_contrast)); return 0; @@ -535,7 +537,9 @@ bivideo_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct lwp *l) sc->sc_max_brightness < dispparam->curval) return (EINVAL); if (sc->sc_max_brightness > 0) { +#ifdef FBDEBUG int org = sc->sc_brightness; +#endif bivideo_set_brightness(sc, dispparam->curval); VPRINTF(("bivideo_ioctl: SET:BRIGHTNESS org=%d, current=%d\n", org, sc->sc_brightness)); return 0;