Module Name:    xsrc
Committed By:   mrg
Date:           Wed Jul  8 00:30:52 UTC 2009

Modified Files:
        xsrc/external/mit/xf86-input-mouse/dist/src: mouse.c

Log Message:
use strcasecmp() to check for netbsd "wsmouse".
auto-generated configs end up with "WSmouse".

fixes PR#41677.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/xf86-input-mouse/dist/src/mouse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-input-mouse/dist/src/mouse.c
diff -u xsrc/external/mit/xf86-input-mouse/dist/src/mouse.c:1.5 xsrc/external/mit/xf86-input-mouse/dist/src/mouse.c:1.6
--- xsrc/external/mit/xf86-input-mouse/dist/src/mouse.c:1.5	Fri Jun 12 05:53:58 2009
+++ xsrc/external/mit/xf86-input-mouse/dist/src/mouse.c	Wed Jul  8 00:30:52 2009
@@ -1757,7 +1757,7 @@
 	    xf86Msg(X_WARNING, "%s: cannot open input device\n", pInfo->name);
 	else {
 #if defined(__NetBSD__) && defined(WSCONS_SUPPORT) && defined(WSMOUSEIO_SETVERSION)
-	    if (!strcmp(pMse->protocol, "wsmouse")) {
+	    if (!strcasecmp(pMse->protocol, "wsmouse")) {
 	        int version = WSMOUSE_EVENT_VERSION;
 	        if (ioctl(pInfo->fd, WSMOUSEIO_SETVERSION, &version) == -1)
 	            xf86Msg(X_WARNING, "%s: cannot set version\n", pInfo->name);

Reply via email to