1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/x11/accessx/files/patch-Access.C
Martin Wilke a933b342e0 - Fix build
PR:		109184
Submitted by:	Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu> (maintainer)
2007-02-15 11:44:54 +00:00

30 lines
692 B
C

--- 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"
+using namespace std;
+
//
// 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;*/
}