updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / accessx / accessx-0951.patch
blobebc0ef5374f130012c990fb76ac3289848eb2baf
1 diff -ur accessx.orig/Access.C accessx/Access.C
2 --- accessx.orig/Access.C 2003-09-19 19:08:01.000000000 +0300
3 +++ accessx/Access.C 2008-01-07 18:53:43.000000000 +0200
4 @@ -22,6 +22,8 @@
5 #include <X11/XKBlib.h>
6 #include "Access.h"
8 +using namespace std;
11 // Access()
13 @@ -153,7 +155,7 @@
14 //Get the state of the keyboard.
16 XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
17 - if ((int)xkb == BadAlloc || xkb == NULL)
18 + if (xkb == NULL)
20 return 5; /*AccessKeyboardQueryFailure;*/
22 @@ -262,7 +264,7 @@
23 //Get the state of the keyboard.
25 XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
26 - if ((int)xkb == BadAlloc || xkb == NULL)
27 + if (xkb == NULL)
29 return 5; /*AccessKeyboardQueryFailure;*/
31 diff -ur accessx.orig/Access.h accessx/Access.h
32 --- accessx.orig/Access.h 2003-09-19 19:00:42.000000000 +0300
33 +++ accessx/Access.h 2008-01-07 18:53:47.000000000 +0200
34 @@ -21,7 +21,7 @@
38 -#include <iostream.h>
39 +#include <iostream>
40 #include <math.h>
42 inline char* onoroff(int val)
43 diff -ur accessx.orig/ax.C accessx/ax.C
44 --- accessx.orig/ax.C 2003-09-19 19:09:31.000000000 +0300
45 +++ accessx/ax.C 2008-01-07 18:53:49.000000000 +0200
46 @@ -20,6 +20,7 @@
48 #include "ax.h"
50 +using namespace std;
52 ///////////////////////////////////////////////////////////////////////////////
54 diff -ur accessx.orig/ax.h accessx/ax.h
55 --- accessx.orig/ax.h 2003-09-19 19:06:56.000000000 +0300
56 +++ accessx/ax.h 2008-01-07 18:53:51.000000000 +0200
57 @@ -24,7 +24,7 @@
59 // Include Files
61 -#include <iostream.h>
62 +#include <iostream>
63 #include <stdio.h>
64 #include <stdlib.h>
65 #include <string.h>