summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshadchin <shadchin@openbsd.org>2014-12-22 11:21:49 +0000
committershadchin <shadchin@openbsd.org>2014-12-22 11:21:49 +0000
commit8923421a5c0ecff52fa91db1ba458a40b8d45c6a (patch)
treef4600a3806cf5edb5d29c4dad0f1f574a42333e7
parentOperations on the global prefix or address lists should be done under (diff)
downloadwireguard-openbsd-8923421a5c0ecff52fa91db1ba458a40b8d45c6a.tar.xz
wireguard-openbsd-8923421a5c0ecff52fa91db1ba458a40b8d45c6a.zip
Now does not need to be initialized event.value.
This not used anymore. ok deraadt@
-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 */