diff --git a/usr.sbin/wsmoused/pathnames.h b/usr.sbin/wsmoused/pathnames.h index cffdb221bfd8..c7c106247344 100644 --- a/usr.sbin/wsmoused/pathnames.h +++ b/usr.sbin/wsmoused/pathnames.h @@ -1,4 +1,4 @@ -/* $NetBSD: pathnames.h,v 1.1 2002/06/26 23:13:08 christos Exp $ */ +/* $NetBSD: pathnames.h,v 1.2 2002/06/27 15:07:52 christos Exp $ */ /* * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -35,6 +35,6 @@ #define _PATH_DEFAULT_MOUSE "/dev/wsmouse" #define _PATH_PID "/var/run/wsmoused.pid" #define _PATH_TTYPREFIX "/dev/ttyE" -#define _PATH_WSDISPLAYSTAT "/dev/wsdisplay" +#define _PATH_TTYSTAT "/dev/ttyEstat" #endif /* _WSMOUSED_PATHNAMES_H */ diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c index d9032ad5a723..4c964d1d64ad 100644 --- a/usr.sbin/wsmoused/wsmoused.c +++ b/usr.sbin/wsmoused/wsmoused.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsmoused.c,v 1.1 2002/06/26 23:13:10 christos Exp $ */ +/* $NetBSD: wsmoused.c,v 1.2 2002/06/27 15:07:53 christos Exp $ */ /* * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #include #ifndef lint -__RCSID("$NetBSD: wsmoused.c,v 1.1 2002/06/26 23:13:10 christos Exp $"); +__RCSID("$NetBSD: wsmoused.c,v 1.2 2002/06/27 15:07:53 christos Exp $"); #endif /* not lint */ #include @@ -115,9 +115,9 @@ static void open_files(void) { /* Open wsdisplay status device */ - mouse.stat_fd = open(_PATH_WSDISPLAYSTAT, O_RDONLY | O_NONBLOCK, 0); + mouse.stat_fd = open(_PATH_TTYSTAT, O_RDONLY | O_NONBLOCK, 0); if (mouse.stat_fd == -1) - err(EXIT_FAILURE, "Cannot open `%s'", _PATH_WSDISPLAYSTAT); + err(EXIT_FAILURE, "Cannot open `%s'", _PATH_TTYSTAT); mouse.fd = -1; mouse_open_device(&mouse, 0);