aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/keysym2ucs.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-07-21 16:17:23 +0200
committerPierre Ossman <ossman@cendio.se>2014-07-21 16:17:23 +0200
commit7b8bff630ce2d98b87ffbf4843e71ca2c97df717 (patch)
tree58bf286f61ebab3a74c6d7b28defa3e20c4e6bb9 /vncviewer/keysym2ucs.c
parentb662ffd4ac9b18ffacebb26d5a57680dd49788b2 (diff)
downloadtigervnc-7b8bff630ce2d98b87ffbf4843e71ca2c97df717.tar.gz
tigervnc-7b8bff630ce2d98b87ffbf4843e71ca2c97df717.zip
Use NoSymbol as the error code
This is how the X11 API does things, so it's clearer if we use the same principle.
Diffstat (limited to 'vncviewer/keysym2ucs.c')
-rw-r--r--vncviewer/keysym2ucs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vncviewer/keysym2ucs.c b/vncviewer/keysym2ucs.c
index 4e3dca25..2fd58706 100644
--- a/vncviewer/keysym2ucs.c
+++ b/vncviewer/keysym2ucs.c
@@ -34,6 +34,8 @@
#include "keysym2ucs.h"
+#define NoSymbol 0
+
struct codepair {
unsigned short keysym;
unsigned short ucs;
@@ -886,5 +888,5 @@ unsigned ucs2keysym(unsigned ucs)
return ucs | 0x01000000;
/* no matching keysym value found */
- return 0xFFFFFF;
+ return NoSymbol;
}