Constify keysym <-> Unicode lookup table
authorDaniel Stone <daniel@fooishbar.org>
Tue, 11 Sep 2012 13:52:27 +0000 (14:52 +0100)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 11 Sep 2012 13:52:27 +0000 (14:52 +0100)
Before:
  text     data     bss     dec     hex filename
234422    11288    2304  248014   3c8ce obj-amd64/.libs/libxkbcommon.so.0.0.0

After:
  text     data     bss     dec     hex filename
240694     5016    2304  248014   3c8ce obj-amd64/.libs/libxkbcommon.so.0.0.0

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/keysym-utf.c

index 6da5cd4..66de078 100644 (file)
@@ -38,7 +38,7 @@
 #include "xkbcommon/xkbcommon.h"
 #include "utils.h"
 
-struct codepair {
+const struct codepair {
     xkb_keysym_t keysym;
     uint16_t ucs;
 } keysymtab[] = {