aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_keydef.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 12:27:28 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 12:27:28 +0200
commit0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 (patch)
tree611b143eb0834c892246f8b31311e9224977c952 /src/screen_keydef.c
parent1f0ff952055c920c8671a1587c622e4df8b4a99d (diff)
downloadmpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.tar.gz
mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.tar.xz
mpd-0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1.zip
const pointers
Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
Diffstat (limited to '')
-rw-r--r--src/screen_keydef.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index a8f32d3da..8571ca279 100644
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
@@ -182,7 +182,7 @@ assign_new_key(WINDOW *w, int cmd_index, int key_index)
check_key_bindings(cmds, NULL, 0);
}
-static char *
+static const char *
list_callback(int index, int *highlight, void *data)
{
static char buf[BUFSIZE];
@@ -275,7 +275,7 @@ keydef_close(void)
screen_status_printf(_("Note: Did you forget to \'Apply\' your changes?"));
}
-static char *
+static const char *
keydef_title(char *str, size_t size)
{
if( subcmd<0 )