aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-02-05 18:33:41 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-02-05 18:33:41 +0000
commit4be9bd4f717167bf739efe076e86a81feee53125 (patch)
tree69a34fc076b90e031a24e540091dbdcbac54a884 /x11
parent55dc2228b0511ec2e447d06fee3a1cbbe3f017d1 (diff)
downloadports-4be9bd4f717167bf739efe076e86a81feee53125.tar.gz
ports-4be9bd4f717167bf739efe076e86a81feee53125.zip
Notes
Diffstat (limited to 'x11')
-rw-r--r--x11/accessx/files/patch-Access.C22
1 files changed, 20 insertions, 2 deletions
diff --git a/x11/accessx/files/patch-Access.C b/x11/accessx/files/patch-Access.C
index 05b288fdea2a..dc50b39dd53d 100644
--- a/x11/accessx/files/patch-Access.C
+++ b/x11/accessx/files/patch-Access.C
@@ -1,5 +1,5 @@
---- Access.C.orig Mon Dec 16 20:35:51 2002
-+++ Access.C Mon Dec 16 20:36:29 2002
+--- Access.C.orig Tue Mar 13 23:39:55 2001
++++ Access.C Tue Jan 30 22:18:00 2007
@@ -21,6 +21,8 @@
#include <X11/XKBlib.h>
#include "Access.h"
@@ -9,3 +9,21 @@
//
// Access()
//
+@@ -152,7 +154,7 @@
+ //Get the state of the keyboard.
+
+ XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
+- if ((int)xkb == BadAlloc || xkb == NULL)
++ if (xkb == NULL)
+ {
+ return 5; /*AccessKeyboardQueryFailure;*/
+ }
+@@ -261,7 +263,7 @@
+ //Get the state of the keyboard.
+
+ XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
+- if ((int)xkb == BadAlloc || xkb == NULL)
++ if (xkb == NULL)
+ {
+ return 5; /*AccessKeyboardQueryFailure;*/
+ }