registryd: Avoid crashing with a NULL keystring
[platform/upstream/at-spi2-core.git] / registryd / ucs2keysym.c
index d568845..b4967be 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include <X11/X.h>
+#include "deviceeventcontroller.h"     /* for prototype */
 
 struct codepair {
   unsigned short keysym;
@@ -793,7 +794,7 @@ struct codepair {
   { 0x0ef7, 0x318e }, /*               Hangul_AraeAE ㆎ HANGUL LETTER ARAEAE */
  };
 
-KeySym ucs2keysym (long ucs)
+long ucs2keysym (long ucs)
 {
     int min = 0;
     int max = sizeof(keysymtab) / sizeof(struct codepair) - 1;
@@ -821,7 +822,7 @@ KeySym ucs2keysym (long ucs)
     return ucs | 0x01000000;
 }
 
-long keysym2ucs(KeySym keysym)
+long keysym2ucs(long keysym)
 {
     int min = 0;
     int max = sizeof(keysymtab) / sizeof(struct codepair) - 1;