summaryrefslogtreecommitdiff
path: root/usr.sbin/wsmoused/wsmoused.c
diff options
context:
space:
mode:
authorAlexandr Shadchin <shadchin@cvs.openbsd.org>2014-12-22 11:21:50 +0000
committerAlexandr Shadchin <shadchin@cvs.openbsd.org>2014-12-22 11:21:50 +0000
commitf4ec76371a086d48b89738f6a387421a21045ab4 (patch)
treeb9d4b6b2ca1532961903c46293f88d024b27e7fe /usr.sbin/wsmoused/wsmoused.c
parent20713c2f0d1d5cb94adcb6ef39805b03d5aa1e5f (diff)
Now does not need to be initialized event.value.
This not used anymore. ok deraadt@
Diffstat (limited to 'usr.sbin/wsmoused/wsmoused.c')
-rw-r--r--usr.sbin/wsmoused/wsmoused.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c
index 38071f65511..1ec52704176 100644
--- a/usr.sbin/wsmoused/wsmoused.c
+++ b/usr.sbin/wsmoused/wsmoused.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmoused.c,v 1.33 2014/12/21 18:23:37 shadchin Exp $ */
+/* $OpenBSD: wsmoused.c,v 1.34 2014/12/22 11:21:49 shadchin Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -401,24 +401,9 @@ wsmoused(void)
struct pollfd pfd[1];
int res;
u_char b;
- struct stat mdev_stat;
-
- /* initialization */
-
- event.type = WSCONS_EVENT_WSMOUSED_ON;
- if (mouse.proto == P_WSCONS) {
- /* get major and minor of mouse device */
- res = stat(mouse.portname, &mdev_stat);
- if (res != -1)
- event.value = mdev_stat.st_rdev;
- else
- event.value = 0;
- } else {
- /* X11 won't start when using wsmoused(8) with a serial mouse */
- event.value = 0;
- }
/* notify kernel the start of wsmoused */
+ event.type = WSCONS_EVENT_WSMOUSED_ON;
res = ioctl(mouse.cfd, WSDISPLAYIO_WSMOUSED, &event);
if (res != 0) {
/* the display driver has no getchar() method */