From 0b3bcb6c7f1bb4a633896b8a9936e498570ef8e1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 12:27:28 +0200 Subject: const pointers Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings. --- src/screen_keydef.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/screen_keydef.c') 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 ) -- cgit v1.2.3