rename /dev/wsdisplay -> /dev/ttyEstat since it has the same major number

as the other ttyE devices.
This commit is contained in:
christos 2002-06-27 15:07:52 +00:00
parent b79e3b9ba1
commit ec14ca749d
2 changed files with 6 additions and 6 deletions

View File

@ -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. * Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -35,6 +35,6 @@
#define _PATH_DEFAULT_MOUSE "/dev/wsmouse" #define _PATH_DEFAULT_MOUSE "/dev/wsmouse"
#define _PATH_PID "/var/run/wsmoused.pid" #define _PATH_PID "/var/run/wsmoused.pid"
#define _PATH_TTYPREFIX "/dev/ttyE" #define _PATH_TTYPREFIX "/dev/ttyE"
#define _PATH_WSDISPLAYSTAT "/dev/wsdisplay" #define _PATH_TTYSTAT "/dev/ttyEstat"
#endif /* _WSMOUSED_PATHNAMES_H */ #endif /* _WSMOUSED_PATHNAMES_H */

View File

@ -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. * Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #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 */ #endif /* not lint */
#include <sys/ioctl.h> #include <sys/ioctl.h>
@ -115,9 +115,9 @@ static void
open_files(void) open_files(void)
{ {
/* Open wsdisplay status device */ /* 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) 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.fd = -1;
mouse_open_device(&mouse, 0); mouse_open_device(&mouse, 0);