Now does not need to be initialized event.value.
This not used anymore.

OK ?

-- 
Alexandr Shadchin

Index: wsmoused.c
===================================================================
RCS file: /cvs/src/usr.sbin/wsmoused/wsmoused.c,v
retrieving revision 1.33
diff -u -p -r1.33 wsmoused.c
--- wsmoused.c  21 Dec 2014 18:23:37 -0000      1.33
+++ wsmoused.c  21 Dec 2014 18:40:00 -0000
@@ -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 */

Reply via email to