Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons Wrap ifdef's cleaner so wsmouse_[add|rem]_mux...



details:   https://anonhg.NetBSD.org/src/rev/9134127a75e2
branches:  trunk
changeset: 516333:9134127a75e2
user:      jmc <jmc%NetBSD.org@localhost>
date:      Sun Oct 21 23:04:57 2001 +0000

description:
Wrap ifdef's cleaner so wsmouse_[add|rem]_mux only get pulled in if NWSMUX > 0.

diffstat:

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

diffs (41 lines):

diff -r cc1d7e40f3f7 -r 9134127a75e2 sys/dev/wscons/wsmux.c
--- a/sys/dev/wscons/wsmux.c    Sun Oct 21 23:03:14 2001 +0000
+++ b/sys/dev/wscons/wsmux.c    Sun Oct 21 23:04:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsmux.c,v 1.12 2001/10/13 20:03:38 augustss Exp $      */
+/*     $NetBSD: wsmux.c,v 1.13 2001/10/21 23:04:57 jmc Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -541,6 +541,7 @@
        case WSMUX_ADD_DEVICE:
 #define d ((struct wsmux_device *)data)
                switch (d->type) {
+#if NWSMUX > 0
 #if NWSMOUSE > 0
                case WSMUX_MOUSE:
                        return (wsmouse_add_mux(d->idx, sc));
@@ -549,7 +550,6 @@
                case WSMUX_KBD:
                        return (wskbd_add_mux(d->idx, sc));
 #endif
-#if NWSMUX > 0
                case WSMUX_MUX:
                        return (wsmux_add_mux(d->idx, sc));
 #endif
@@ -558,6 +558,7 @@
                }
        case WSMUX_REMOVE_DEVICE:
                switch (d->type) {
+#if NWSMUX > 0
 #if NWSMOUSE > 0
                case WSMUX_MOUSE:
                        return (wsmouse_rem_mux(d->idx, sc));
@@ -566,7 +567,6 @@
                case WSMUX_KBD:
                        return (wskbd_rem_mux(d->idx, sc));
 #endif
-#if NWSMUX > 0
                case WSMUX_MUX:
                        return (wsmux_rem_mux(d->idx, sc));
 #endif



Home | Main Index | Thread Index | Old Index