]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
gui: Have km_keyname() return const.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 28 Apr 2020 19:56:38 +0000 (21:56 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 17 Sep 2020 15:43:02 +0000 (17:43 +0200)
We neither want the caller to write there nor to free the memory.

gui.c

diff --git a/gui.c b/gui.c
index a4f1717c2a996568d2fe36cc3a010f165ff1bcd9..0eb5444fc42c60a3fd116f3bdf8fbc76cc698416 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -192,7 +192,7 @@ static bool curses_active(void)
 }
 
 /* taken from mutt */
-static char *km_keyname(int c)
+static const char *km_keyname(int c)
 {
        static char buf[10];