X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=keymap.c;h=2219c6887fea6be247a74bbd58e1c6dfa5d85876;hp=b480455c9c5e7c67f69dba650fb3f2ece23d2aa4;hb=5e53f9e5f65aa5b3af6f5af9d868403536534afb;hpb=59926571aaec3e38cec09d0d9fa34f4a4b887309 diff --git a/keymap.c b/keymap.c index b480455..2219c68 100644 --- a/keymap.c +++ b/keymap.c @@ -184,7 +184,7 @@ static int parsekeys (char *str, keycode_t * d, int max) /* insert a key sequence into the specified map. the map is sorted by ASCII * value (lowest to highest) */ -void km_bind (char *s, int menu, int op, char *macro, char *descr) +void km_bind (const char *s, int menu, int op, char *macro, char *descr) { struct keymap_t *map, *tmp, *last = NULL, *next; keycode_t buf[MAX_SEQ]; @@ -241,7 +241,7 @@ void km_bind (char *s, int menu, int op, char *macro, char *descr) Keymaps[menu] = map; } -void km_bindkey (char *s, int menu, int op) +void km_bindkey (const char *s, int menu, int op) { km_bind (s, menu, op, NULL, NULL); }