LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File buildfix.patch of Package accessx (Project home:iavael:free)

diff --git a/Access.C b/Access.C
index 46eb7f3..33a41fc 100644
--- a/Access.C
+++ b/Access.C
@@ -153,7 +153,7 @@ int Access::QueryServer()
     //Get the state of the keyboard.
 
     XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
-    if ((int)xkb == BadAlloc || xkb == NULL)
+    if (xkb == (XkbDescPtr)BadAlloc || xkb == NULL)
       {
 	return 5; /*AccessKeyboardQueryFailure;*/
       }
@@ -262,7 +262,7 @@ int Access::FlushNewSettings()
     //Get the state of the keyboard.
 
     XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
-    if ((int)xkb == BadAlloc || xkb == NULL)
+    if (xkb == (XkbDescPtr)BadAlloc || xkb == NULL)
       {
 	return 5; /*AccessKeyboardQueryFailure;*/
       }