]> Dogcows Code - chaz/openbox/commitdiff
proper constness
authorDana Jansens <danakj@orodu.net>
Tue, 7 Aug 2007 02:14:11 +0000 (22:14 -0400)
committerDana Jansens <danakj@orodu.net>
Tue, 7 Aug 2007 02:15:59 +0000 (22:15 -0400)
openbox/translate.c
openbox/translate.h

index e7962ad575561b2f89e3e8d7e72e94b643eb1e9f..210155789927eae576028c6e8af45d421eaa178f 100644 (file)
@@ -156,7 +156,7 @@ translation_fail:
     return ret;
 }
 
-const gchar *translate_keycode(guint keycode)
+gchar *translate_keycode(guint keycode)
 {
     KeySym sym;
     const gchar *ret = NULL;
@@ -170,7 +170,7 @@ gunichar translate_unichar(guint keycode)
 {
     gunichar unikey = 0;
 
-    const char *key;
+    char *key;
     if ((key = translate_keycode(keycode)) != NULL &&
         /* don't accept keys that aren't a single letter, like "space" */
         key[1] == '\0')
index 21cd64984146ce5556693f5240864d011ce4fd8e..6d9e23bcb26f332305ab64734e380539371e98e7 100644 (file)
@@ -25,7 +25,7 @@ gboolean translate_button(const gchar *str, guint *state, guint *keycode);
 gboolean translate_key(const gchar *str, guint *state, guint *keycode);
 
 /*! Give the string form of a keycode */
-const gchar *translate_keycode(guint keycode);
+gchar *translate_keycode(guint keycode);
 
 /*! Translate a keycode to the unicode character it represents */
 gunichar translate_unichar(guint keycode);
This page took 0.024151 seconds and 4 git commands to generate.