Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/moused Don't default the portname to devices that d...



details:   https://anonhg.NetBSD.org/src/rev/b9dcbfd41d38
branches:  trunk
changeset: 525956:b9dcbfd41d38
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Apr 22 13:08:34 2002 +0000

description:
Don't default the portname to devices that don't exist on NetBSD.

diffstat:

 usr.sbin/moused/moused.c |  15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diffs (40 lines):

diff -r 084122174416 -r b9dcbfd41d38 usr.sbin/moused/moused.c
--- a/usr.sbin/moused/moused.c  Mon Apr 22 13:03:06 2002 +0000
+++ b/usr.sbin/moused/moused.c  Mon Apr 22 13:08:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: moused.c,v 1.5 2002/01/01 06:31:49 thorpej Exp $ */
+/* $NetBSD: moused.c,v 1.6 2002/04/22 13:08:34 wiz Exp $ */
 /**
  ** Copyright (c) 1995 Michael Smith, All rights reserved.
  **
@@ -48,7 +48,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: moused.c,v 1.5 2002/01/01 06:31:49 thorpej Exp $");
+__RCSID("$NetBSD: moused.c,v 1.6 2002/04/22 13:08:34 wiz Exp $");
 #endif /* not lint */
 
 #include <ctype.h>
@@ -764,21 +764,10 @@
 
     /* the default port name */
     switch(rodent.rtype) {
-
     case MOUSE_PROTO_INPORT:
         /* INPORT and BUS are the same... */
        rodent.rtype = MOUSE_PROTO_BUS;
        /* FALL THROUGH */
-    case MOUSE_PROTO_BUS:
-       if (!rodent.portname)
-           rodent.portname = "/dev/mse0";
-       break;
-
-    case MOUSE_PROTO_PS2:
-       if (!rodent.portname)
-           rodent.portname = "/dev/psm0";
-       break;
-
     default:
        if (rodent.portname)
            break;



Home | Main Index | Thread Index | Old Index