Index: /trunk/xdotool/xdo.c
===================================================================
--- /trunk/xdotool/xdo.c	(revision 1068)
+++ /trunk/xdotool/xdo.c	(revision 1069)
@@ -26,5 +26,5 @@
 static int _xdo_has_xtest(xdo_t *xdo);
 
-static int _xdo_keycode_from_char(xdo_t *xdo, char key);
+static KeyCode _xdo_keycode_from_char(xdo_t *xdo, char key);
 static int _xdo_get_shiftcode_if_needed(xdo_t *xdo, char key);
 
@@ -269,5 +269,5 @@
   int i = 0;
   char key = '0';
-  uint keycode = 0;
+  KeyCode keycode = 0;
   uint shiftcode = 0;
 
@@ -337,5 +337,5 @@
 
 /* Helper functions */
-static int _xdo_keycode_from_char(xdo_t *xdo, char key) {
+static KeyCode _xdo_keycode_from_char(xdo_t *xdo, char key) {
   int i = 0;
   int len = xdo->keycode_high - xdo->keycode_low;
@@ -345,5 +345,5 @@
       return xdo->charcodes[i].code;
 
-  return -1;
+  return (KeyCode)-1;
 }
 
Index: /trunk/xdotool/xdo.h
===================================================================
--- /trunk/xdotool/xdo.h	(revision 1068)
+++ /trunk/xdotool/xdo.h	(revision 1069)
@@ -24,5 +24,5 @@
 typedef struct charcodemap {
   char key;
-  int code;
+  KeyCode code;
   int shift;
 } charcodemap_t;
