From fe586dbbdb129e00be6c2b5e6739341dc019ab1c Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 17 Feb 2014 02:30:17 +0100 Subject: keycodes: add const to a function argument --- input/keycodes.c | 2 +- input/keycodes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'input') diff --git a/input/keycodes.c b/input/keycodes.c index 66cb403c23..7d9c9bee55 100644 --- a/input/keycodes.c +++ b/input/keycodes.c @@ -283,7 +283,7 @@ char *mp_input_get_key_name(int key) return dst.start; } -char *mp_input_get_key_combo_name(int *keys, int max) +char *mp_input_get_key_combo_name(const int *keys, int max) { bstr dst = {0}; while (max > 0) { diff --git a/input/keycodes.h b/input/keycodes.h index e7dd10c8ab..adc33889fb 100644 --- a/input/keycodes.h +++ b/input/keycodes.h @@ -260,7 +260,7 @@ int mp_input_get_key_from_name(const char *name); char *mp_input_get_key_name(int key); // Combination of multiple keys to string. -char *mp_input_get_key_combo_name(int *keys, int max); +char *mp_input_get_key_combo_name(const int *keys, int max); // String containing combination of multiple string to keys. int mp_input_get_keys_from_string(char *str, int max_num_keys, -- cgit v1.2.3